react-hook-form / devtools

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

issue: Custom validation functions are called on every change when Devtools are used #202

Open dd-jonas opened 10 months ago

dd-jonas commented 10 months ago

Version Number

7.47.0

Codesandbox/Expo snack

https://stackblitz.com/edit/stackblitz-starters-z9tuex?file=src%2FApp.tsx

Steps to reproduce

  1. Go to the repro link
  2. Notice the console logs of the first form
  3. Type in the first input, blur the input, ...
  4. Notice more logs
  5. Repeat for the second input and notice no logs until submitted

Expected behaviour

Behaviour should be the same as when Devtools aren't used

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Edge

Relevant log output

No response

Code of Conduct