Skip to content
Discussion options

You must be logged in to vote

The first argument of fetcher.submit is the data you want to send, if there’s no data set it to null like

fetcher.submit(null, {
  method: "post",
  action: "/user/logout"
})

Also if you’re going to use fetcher.submit in the onClick of a button, I recommend you to instead wrap the button in fetcher.Form.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ziimakc
Comment options

@sergiodxa
Comment options

@kiliman
Comment options

Answer selected by ziimakc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants