You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error throws when setValue("activeNameDisabled", currentActiveItem.disabled) is called inside useEffect and only if I`m watching 'activeNameDisabled' with watch.
Expected behaviour
Since I am subscribed to fieldArray fields changes, there should not be an infinite loop, because the fields do not change inside useEffect
This discussion was converted from issue #11527 on February 20, 2024 11:23.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.50.1
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/trusting-pine-xc5ft4
Steps to reproduce
The error throws when setValue("activeNameDisabled", currentActiveItem.disabled) is called inside useEffect and only if I`m watching 'activeNameDisabled' with watch.
Expected behaviour
Since I am subscribed to
fieldArray
fields changes, there should not be an infinite loop, because the fields do not change inside useEffectWhat browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions