disabled
state causes infinity loop and freezes entire app
#11287
Labels
bug
Something isn't working
disabled
state causes infinity loop and freezes entire app
#11287
Version Number
7.49.0
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/disabled-react-hook-forms-ntj84p
Steps to reproduce
PR with a failing test: #11288
Manual:
disabled
fieldExpected behaviour
disabled
in combination withgetFieldState
should not cause a never ending infinity loopWhat browsers are you seeing the problem on?
Firefox, Chrome, Safari, Edge
Relevant log output
we saw that the loop is
_updateDisabledField
->updateTouchAndDirty
updateTouchAndDirty
:shouldRenderFormState
returns"dirtyFields"
Screenshot
Code of Conduct
The text was updated successfully, but these errors were encountered: