-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react hook form throwing TypeError: Cannot read properties of undefined (reading 'next') ar remove and reset of useForm #10021
Comments
Any update on this issue with a reproducible codesandbox and steps to reproduce? (version number and etc...) |
I have found the root cause and will patch this today, however, please consider following the issue template. This is helping me and everyone else who are using this software. |
…10026) * attempt to fix cypress action * Revert "attempt to fix cypress action" This reverts commit e84e19f. * fix by change node version * rename _stateFlags to _state * try node 17 * Revert "try node 17" asdasdahhhhhkl This reverts commit 9a3b223. * remove version fix * wait for vite * Revert "📦 fix cypress tests (#10025)" This reverts commit ba919be. * Revert "Revert "📦 fix cypress tests (#10025)"" This reverts commit 9057da6. * Revert "Revert "Revert "📦 fix cypress tests (#10025)""" This reverts commit 11ba329. * fix #10021
Thank you for looking into it. I still get the error with the new patch version. In my case, the form is in a modal. In case of an error in the form, where I close the modal and the component unmounts the error appears. So I guess there is some promise unhandled |
@florian-gierlichs would be good to reproduce it in a codesandbox, and happy to look into and fix that. |
@bluebill1049 thanks for fixing :) Is it possible to publish the new version in npm? There is still 7.43.3 |
@maidi29 published 🤘 |
@bluebill1049 nvm 7.43.4 seem to work nice. |
Any tips on how to fix that without upgrading a version of RHF? I need to fix that in one place and I don't want to upgrade the whole environment. |
Hi,
I am facing the issue with react-hook-form useForm 'remove' and 'reset' as of now. It was working fine before but facing issue from today.
Its throwing
TypeError: Cannot read properties of undefined (reading 'next')
This is the issue:
for test cases:
for UI: when we use remove or reset
versions:
next
: 12.0.7react
:17.0.2react-hook-form
:7.28.0The text was updated successfully, but these errors were encountered: