ProNextJS / forms-management-yt

Code for the Forms Management video on YouTube
66 stars 9 forks source link

Trouble with `useFormStatus` and pending states #1

Closed TheMagoo73 closed 8 months ago

TheMagoo73 commented 8 months ago

First up, awesome video and repo - really helpful in getting all the moving parts working together!

I'm having an issue using the useFormStatus hook with this to track the pending state, it seems like something is causing the pending state to never be set. I'm doing some experimentation at the moment, and best I can see it's something related to the use of the ref to trigger the submit from code, rather than the default browser behaviour, but I've not yet proved that to my satisfaction. Is this something you've tried/found, or equally am I missing something?

jherr commented 8 months ago

I've not tried it. Feel free to jump on the Blue Collar Coder Discord server to discuss this in more detail. Please READ and FOLLOW the posting guidelines in the #rules section.

kam-st commented 5 months ago

First up, awesome video and repo - really helpful in getting all the moving parts working together!

I'm having an issue using the useFormStatus hook with this to track the pending state, it seems like something is causing the pending state to never be set. I'm doing some experimentation at the moment, and best I can see it's something related to the use of the ref to trigger the submit from code, rather than the default browser behaviour, but I've not yet proved that to my satisfaction. Is this something you've tried/found, or equally am I missing something?

Were you able to find solution to this?