Skip to content
Discussion options

You must be logged in to vote

Add a name to every button in the form and use it to identify the button inside your action.

If you have multiple forms with one button, add a single input of type hidden with the same name in every form, and use it to identify the form inside your action.

I don't recommend you to use PATCH, GET for loaders and POST for actions is simpler to grasp, and Form doesn't natively work with other methods anyway so in case your form can work without JS it will use POST instead of PATCH and your logic will break.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dan-cooke
Comment options

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