react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

Maintaining Global state when working with multi-route form having single submit button (not like wizard)

Open adarsh1997shah opened this issue 3 years ago • 0 comments

Are you submitting a bug report or a feature request?

May be a way to do this.

What is the current behavior?

Currently i am having multi-route form, having different form on different route, so user can switch between the different form, and have central submit button, such that once user feels to save the current form state.

Problem : - On switching to different route the form state changes, and it is difficult to maintain pristine, dirty and respective form state on submit button and also error and touched state

What is the expected behavior?

Good to have maintain global state, irrespective of form mounting and unmounting

Sandbox Link

What's your environment?

Other information

adarsh1997shah avatar Mar 24 '22 16:03 adarsh1997shah