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
What you were expecting:
I have two linked inputs on a form - a SelectInput and a CheckboxGroupInput. I expect to be able to change the options of the group input depending on the selection in the select. For this, I use the FormDataConsumer.
What happened instead:
This works, so the options update in the group, but whenever I change the selection, I have a warning in the console:
Warning: Cannot update a component from inside the function body of a different component.
in CheckboxGroupInput (at EditFormAlt.js:26)
in FormDataConsumerView (created by FormDataConsumer)
in FormDataConsumer (at EditFormAlt.js:23)
index.js:1437 Warning: Cannot update a component from inside the function body of a different component.
in CheckboxGroupInput (at EditFormAlt.js:26)
in FormDataConsumerView (created by FormDataConsumer)
in FormDataConsumer (at EditFormAlt.js:23)
in div (created by FormInput)
in FormInput (created by SimpleFormView)
in div (created by ForwardRef(CardContent))
in ForwardRef(CardContent) (created by WithStyles(ForwardRef(CardContent)))
in WithStyles(ForwardRef(CardContent)) (created by CardContentInner)
in CardContentInner (created by SimpleFormView)
in form (created by SimpleFormView)
in SimpleFormView (created by FormView)
in FormView (created by ReactFinalForm)
in ReactFinalForm (created by FormWithRedirect)
in FormWithRedirect (created by SimpleForm)
in SimpleForm (at EditFormAlt.js:20)
The text was updated successfully, but these errors were encountered:
What you were expecting:
I have two linked inputs on a form - a SelectInput and a CheckboxGroupInput. I expect to be able to change the options of the group input depending on the selection in the select. For this, I use the FormDataConsumer.
What happened instead:
This works, so the options update in the group, but whenever I change the selection, I have a warning in the console:
Related code:
Other information:
Environment
The text was updated successfully, but these errors were encountered: