Save the state of an fieldArray and then restore it via initial value. #1738
-
In submit or watch, I get the wrong object that can be passed to initialValues. How do I get the current state with an array of objects that contain the id? At the moment my implementation looks like this. The problem is that I can't get the full state at the time of submit.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
I resolved my problem:
But now I have another problem. Removing an element from the component state does not remove it from the state of the form itself. |
Beta Was this translation helpful? Give feedback.
-
what do you mean by wrong object? can you supply a CSB? |
Beta Was this translation helpful? Give feedback.
what do you mean by wrong object? can you supply a CSB?