Want a straightforward article on submitting a form in Nextjs to a server action using an HTML event onBlur? And with form validation?
Then this i...
For further actions, you may consider blocking this person and/or reporting abuse
Hi. Thanks for sharing. I have a couple of questions:
Thanks!
onChangewould call the formAction every single keystroke, which isn't very efficient.onBlurwill persist the data once the change is complete.I see.
I have a form where I need to capture the users interaction immediately. It's during signup and I don't want any save buttons and don't want any lost data. It can be inefficient, but it's a limited case and the payoff for less friction is worth it.
In my use case the user can't advance to another page, they're mid onboarding. But if that could be the case you'd need to handle the outcomes.
grtgrtg