How does conform work? #818
-
Looking at this example: How does conform provide the ability to call what is inside the action prop after the onSubmit is run client side?
I tried reading through the source code, and I saw things like new event creations and new buttons, but nothing was clear to me about what exactly is the magic that lets it work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If your question is just about the action, all conform does is just calling This is different from the traditional spa app where we calls |
Beta Was this translation helpful? Give feedback.
If your question is just about the action, all conform does is just calling
event.preventDefault()
conditionally based on the result of the client validation.This is different from the traditional spa app where we calls
event.preventDefault()
regardless of the form status.