forge42dev / remix-hook-form

Open source wrapper for react-hook-form aimed at Remix.run
MIT License
332 stars 27 forks source link

fixed useActionData overriding error clearing #15

Closed Centerworx closed 1 year ago

Centerworx commented 1 year ago

Fixes issue #12

The reseting of submit state needs to happen in the mergeErrors function so that it will not clear the state till after the data has been added to the error.

Note: Something weird happened with the updated version. I had to spread errors in the action to get the errors to show up on the form. Did that change recently?