devtools icon indicating copy to clipboard operation
devtools copied to clipboard

issue: With a `<DevTool />`, `watch` is not triggered by `setValue`

Open QzCurious opened this issue 2 years ago • 1 comments

Version Number

react-hook-form: 7.43.5; react: 18.2.0

Codesandbox/Expo snack

https://codesandbox.io/s/hookform-devtools-bug-watch-is-not-triggered-by-setvalue-mhcjlx?file=/src/index.tsx

Steps to reproduce

https://user-images.githubusercontent.com/38932402/225195576-d5ae222f-4474-4de8-81be-8013c66ff1e3.mp4

Expected behaviour

setValue should correctly trigger watch whether there's a <Devtool /> or not.

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

QzCurious avatar Mar 15 '23 03:03 QzCurious