final-form / final-form/react-final-form

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

Open
#979 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.