Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for persisting state #12

Closed
2 tasks
andyrichardson opened this issue Dec 22, 2019 · 0 comments · Fixed by #320
Closed
2 tasks

Add support for persisting state #12

andyrichardson opened this issue Dec 22, 2019 · 0 comments · Fixed by #320
Labels
Feature New feature or request

Comments

@andyrichardson
Copy link
Owner

About

Users should have the option to persist and restore form state.

This is useful when persisting the state of the form is required (i.e. localStorage / AsyncStorage).

The only current option of restoring state is with multiple useField or mountField calls (not ideal).

This should not encourage a pattern of setting initial values (i.e. useForm({ initialValues }).

Todo

  • Export state somehow (maybe)
  • Allow restoration of state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant