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
Currently we can use Redux with a FormSpy to synchronize the formValues in a Store like ReduxForm.
In other word : initialValues will be set to store values and a formSpy will set the values in the store on each value changed.
The problem of this is that on each value changed the form is reseted, I am not sure it's good for performance.
I was wondering if we can do the following:
Use a FormSpy to propagate FormField change to Redux
Don't set store values as initialValues
Create a component that is connected to the store and put this component (inside )
As this component is inside the Form I can have access to "change" function.
If someone outside the store want to change a value of the form, use an ACTION to change the store Values
On value change, the "custom component" received (connected to the store) is called, and because it's inside can call "Change function" to change the form data.
The text was updated successfully, but these errors were encountered:
Feature Request:
Hello,
Currently we can use Redux with a FormSpy to synchronize the formValues in a Store like ReduxForm.
In other word : initialValues will be set to store values and a formSpy will set the values in the store on each value changed.
The problem of this is that on each value changed the form is reseted, I am not sure it's good for performance.
I was wondering if we can do the following:
The text was updated successfully, but these errors were encountered: