react-use-form-state icon indicating copy to clipboard operation
react-use-form-state copied to clipboard

Request: reset current values to initial values

Open domzs opened this issue 5 years ago • 1 comments

Hi,

Would it be possible to make a new formState function reset current values to initial values. And the new values would be pristine...

Thank You

domzs avatar Oct 26 '20 19:10 domzs

Hi @domzs

Using formState.reset() resets the current values to the initial values. After reset, formState.isPristine() will return true.

wouterraateland avatar Dec 21 '20 15:12 wouterraateland