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
I am trying to use the fieldarray as descirbed in http://jquense.github.io/react-formal/api/FieldArray.
The only difference is that instead of using defaultValue I am using value hooked to the state to create a controlled component.
The issue occurs when the state changes, for example a new object gets pushed into the list, in this chase the arrayField is not updated and still shows the old values.
The text was updated successfully, but these errors were encountered:
I tried using the array helpers but I need a dynamic field that is based on data coming from the server. I tried pushing/removing changed state with the arrayhelpers but when doing so I would get a warning that you cannot update a component while rendering.
I am trying to use the fieldarray as descirbed in http://jquense.github.io/react-formal/api/FieldArray.
The only difference is that instead of using defaultValue I am using value hooked to the state to create a controlled component.
The issue occurs when the state changes, for example a new object gets pushed into the list, in this chase the arrayField is not updated and still shows the old values.
The text was updated successfully, but these errors were encountered: