remix-hook-form
remix-hook-form copied to clipboard
Property 'root' does not exist on type
Hello! I believe the library may be using the wrong type for the errors
property of formState. Perhaps it should use FieldErrors rather than FieldErrorsImpl.
Also, the "root" error doesn't populate back in the formState if passed from the actions.
"root" is supported by react-hook-form
I have the same issue. I need a field to put my general server errors into. I'm quite sure this used to work, but not after the 3.x updates
Pinpointed the issue, will be fixed in next release!
Wonderful. Appreciate it!
Thank you @AlemTuzlak !!
I've made the errors have the correct type with 3.2.3 and looking into making the root error be populated and work
Any updates?
Should work with the latest version of react and remix hook form I believe
I think this works now, feel free to re-open if I'm wrong but I've tested it locally and all is good