react-use-form-state
react-use-form-state copied to clipboard
Request: reset current values to initial values
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
Hi @domzs
Using formState.reset() resets the current values to the initial values. After reset, formState.isPristine() will return true.