Skip to content

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