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 "restart" API method #348

Merged
merged 3 commits into from
May 27, 2020
Merged

Add "restart" API method #348

merged 3 commits into from
May 27, 2020

Conversation

resolritter
Copy link
Contributor

restart is a combination of resetting both the values and all fields' states, as opposed to reset, which does not change the fields' states

close #333


About the parens changes: "always" has become the default in Prettier v2.0 (link). I had formatting set on my editor which picked up the Prettier configuration in this repository, but due to the absence of this rule, the changes were left unchecked. I can revert everything aside from the actual functionality changes if you want.

"restart" is a combination of resetting both the values and all fields' states,
as opposed to "reset", which does not change the fields' states

close #333
@resolritter resolritter changed the title Implement "restart" API method Add "restart" API method May 26, 2020
@erikras erikras merged commit fec26df into final-form:master May 27, 2020
@erikras
Copy link
Member

erikras commented May 27, 2020

Published in v4.20.0.

@resolritter resolritter deleted the restart branch May 27, 2020 20:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why not reset all fields' state when call form.reset()?
2 participants