formComponents - typing useFormContext #1335
Unanswered
chrislicodes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I need to create a reusable form component that includes several nested sub-forms. The reason behind this is that I have a deeply nested object structure, and the same interface can appear at multiple paths within the object.
Is it possible to type the
useFormContext
so that it expects the typeMainObject
?For instance:
Any pointers or suggestions would be greatly appreciated. Thanks!
Related: #1175
Beta Was this translation helpful? Give feedback.
All reactions