react-hook-form / devtools

📋 DevTools to help debug forms.
https://react-hook-form.com/dev-tools
MIT License
643 stars 47 forks source link

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

Open QzCurious opened 1 year ago

QzCurious commented 1 year ago

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

michaelperrin commented 1 year ago

This might be related to the issue I just opened: #200