Skip to content
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

issue: form.reset will cause useFieldArray to trigger watch subscription #11819

Closed
1 task done
zjb19970804 opened this issue Apr 25, 2024 · 0 comments
Closed
1 task done

Comments

@zjb19970804
Copy link

Version Number

7.40.0

Codesandbox/Expo snack

https://codesandbox.io/p/devbox/react-hook-form-reset-with-usefieldarray-2knvdr?file=%2Fsrc%2FApp.tsx%3A41%2C20

Steps to reproduce

A simple example, get the configuration from the remote and set it to the form. The remote will be updated every time the value in the form changes.

open comments line 56~63,application will be broken

Expected behaviour

reset with useFieldArray do not trigger watch callback

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants