I am using nextjs to support multi paging and I strangle to understand how to retain a dirty within pages. The case scenario is where user is edited the form and then they release form by moving to another page. After confirming some of the information they need, user coming back to the form to continue editing it. My issue is that even if I use keepDirtyOnReinitialize prop, it saves the value of the dirty, but it doesn't actually identify the form it was dirty from first initialization nor is dirty when coming back to it. Even after I have reloaded the page by hard reload it will bring everything to initial state, where user looses everything :( In addition, I am using examples like Redux Example and Loading, Normalizing, Saving, and Reinitializing to retain the state of the form and bring it back when I needed.
What is the expected behavior?
To retain dirty after user came back to the form from different page
What is the current behavior?
I am using nextjs to support multi paging and I strangle to understand how to retain a dirty within pages. The case scenario is where user is edited the form and then they release form by moving to another page. After confirming some of the information they need, user coming back to the form to continue editing it. My issue is that even if I use
keepDirtyOnReinitialize
prop, it saves the value of the dirty, but it doesn't actually identify the form it was dirty from first initialization nor is dirty when coming back to it. Even after I have reloaded the page byhard reload
it will bring everything to initial state, where user looses everything :( In addition, I am using examples likeRedux Example
andLoading, Normalizing, Saving, and Reinitializing
to retain the state of the form and bring it back when I needed.What is the expected behavior?
To retain dirty after user came back to the form from different page
Sandbox Code
What's your environment?
"final-form": "4.20.2", "react-final-form": "6.5.2"