Replies: 2 comments
-
I'm experiencing the same error, my case is when I render the form inside a dialog (modal), and triggering the dialog (pop-up) would cause the error. I only experience getting the error on dev mode, it is not showing on prod. I'm using shadcn too.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
i will close this discussion cuz error gone after i do this ( https://github.com/orgs/react-hook-form/discussions/11722#discussioncomment-8994721 ) |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
codesandbox live demo
Hello, please help me to fix this error. I know that error happens cuz of
isNextButtonDisabled: checkNextAvailability()
in useSignup hook return. But i really don't know how to fix this. I using shadcnui Form in codesandbox you can check Form implementationWhat i already tried to do:
Trying useEffect inside useSignup hook and return isNextButtonDisabled state to update button after re-render. The same thing trying to do in the parent SignupForm component. Nothing of this helps:
SignupForm:
useSignup:
Beta Was this translation helpful? Give feedback.
All reactions