Replies: 1 comment 1 reply
-
Interesting idea. I am not quite sure how the Could you share a bit more about how you see this working? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following up on #790:
At least in Next.js, the most reliable way to fully prevent double submissions is to update a
ref
in the form'sonSubmit
to indicate the action is in-flight. Since Conform handlesonSubmit
, I think it's fair to ask that it keep track of that internally and prevent double submissions. Perhaps this could be an opt-in controlled by auseForm
optionmultipleSubmits
that accepts'prevent' | 'allow' | 'abort'
. Something like:Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions