forge42dev / remix-hook-form

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

Add validatingFields to formState return from useRemixForm to be compatible with react-hook-form 7.51.0 #85

Closed AdiRishi closed 6 months ago

AdiRishi commented 6 months ago

Description

This PR adds compatibility with react-hook-form version 7.51.0

Fixes #84

Type of change

This is mainly a bugfix. However I'm not sure how this would behave if used with a version of react-hook-form that did not return validatingFields from state. It should be fine, that value will just be undefined.

How Has This Been Tested?

I've updated the unit tests to reflect the new field being added.

Checklist: