-
Notifications
You must be signed in to change notification settings - Fork 1.1k
issue: useFieldArray root error is set to the actual field array root object, not the .root property using resolvers #801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It might be more of a discussion than an issue, but I feel like we need to address the discrepancy between the API at least in the docs |
thanks, @Moshyfawn that's a resolver, I haven't considered supporting it just yet. maybe the next feature? Is this probably something to do in the resolver repo? |
I wasn't quite sure if I should file this issue at react-hook-form/resolvers or even react-hook-form/documentation. Since this repo aggregates all the infra, I left it here :P I feel like we should have some note somewhere, whether it's a note in docs for the resolvers or |
I just release I haven't updated the doc as well :( too busy... i will do it this weekend. I will ping you there and you can help me on the wording as well 🤗 |
Yep, sounds good! I'm currently swamped with a new release as well, so if you can ping me when you want to work on docs, I can for sure help you update the info! |
* doc update to include rules for useFieldArray * include a mini example * include info for build in validation only * Update src/data/en/api.tsx Co-authored-by: moshyfawn <[email protected]> * Update src/data/en/api.tsx Co-authored-by: moshyfawn <[email protected]> * Update src/data/en/api.tsx Co-authored-by: moshyfawn <[email protected]> * Update src/data/en/api.tsx Co-authored-by: moshyfawn <[email protected]> * Update src/data/en/api.tsx Co-authored-by: moshyfawn <[email protected]> * Update api.tsx * prettier * prettier Co-authored-by: moshyfawn <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Version Number
7.34.0
Codesandbox/Expo snack
https://codesandbox.io/s/immutable-dawn-v1iigh?file=%2Fsrc%2FApp.tsx
Steps to reproduce
2.1 See the
errors
object shape in the console2.2 See the field array error message paragraph
<p>
content is emptyExpected behaviour
The
errors
object shape is the same between using the "native"useFieldArray
and resolver validation from the7.34.0
releaseWhat browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: