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
close #8653 when useFormContext provide no generic for type check #8654
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 363e6ea:
|
Size Change: 0 B Total Size: 17.6 kB ℹ️ View Unchanged
|
* V8: feature: useFieldArray rules props (#8102) * useFieldArray rules prop * remove required prop * combine logic within validateField * remove logic * update unset method to support root node in array * update api extrator * update type * update useEffect validation logic * update api extrator * fix submit field array error * extract logic into its own function for update root error object * 8.0.0-alpha.3 * update with unit tests coverage for rules validate, minLength and maxLength * include support for required prop for consitent API and test coverage * update API * save some bytes * upgrade to react 18 * Revert "upgrade to react 18" This reverts commit d1c3bf7. * update react * fix cypress test * remove render count * udpate package and include test coverage for nested field array * fix unit and cypress tests * update lock file * revert package * avoid react native breaking change and fix test * fix test and type error * 🚔 close #8653 when useFormContext provide no generic for type check (#8654) * close #8653 when useFormContext provide no generic for type check * update api contract * 🛰 useFormContext include type tests (#8656) * Revert "🚔 close #8653 when useFormContext provide no generic for type check (#8654)" This reverts commit 2e0c3f8. * Revert "🛰 useFormContext include type tests (#8656)" This reverts commit 34af5b3. * 🥼 update changelog related to #8653 * 7.34.0-next.0 * check validation required for field array if not array or empty length * include unit tests coverage for validate fields for array fields * update api extrator
This is still blocking me I'm passing errors in as an object:
This is leading me to get errors like: or
|
I'm getting very similar error, @niemyjski did you manage to solve this? Or at least a workaround? |
No, I ended up pinned to an older version :( |
ref: https://codesandbox.io/s/react-hook-form-chakra-ui-forked-0kcquv?file=/src/App.tsx
related: #8652 #8619
Prevent compile error when user not provide generic for context