-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(useformstate): replace setInitialValue/reset with prefill/revert…
… and reinitialize/clear (#65) * feat(useformstate): replace setInitialValue/reset with prefill/revert and reinitialize/clear To allow for isDirty to be based on prefilled values but also allow clearing the form to a real empty/default value BREAKING CHANGE: `setInitialValue` and `reset` have been replaced with `reinitialize` and `clear`. For better `isDirty` behavior you may want to use `prefill` instead of `reinitialize`. * Simplify sentence about revert/clear
- Loading branch information
Showing
3 changed files
with
69 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters