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
Basically the title. Anytime I try to select a value from the MultiSelect, I run into the infinite loop.
I get that once I update the form state, it triggers a re-render and propagates that down to the child components I just can't understand why I am getting infinite loop since my field.onChange or alternatively form.setValue is inside a callback in the child.
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
-
Basically the title. Anytime I try to select a value from the MultiSelect, I run into the infinite loop.
I get that once I update the form state, it triggers a re-render and propagates that down to the child components I just can't understand why I am getting infinite loop since my
field.onChange
or alternativelyform.setValue
is inside a callback in the child.Any ideas?
Parent
Child
https://codesandbox.io/p/devbox/brave-tdd-sjmzgv?workspaceId=ws_A5p5vVJzHS2Jgo5HQ8aWnJ
Beta Was this translation helpful? Give feedback.
All reactions