How to use a generic Control? FieldArray type? #12402
Unanswered
mrdjohnson
asked this question in
Q&A
Replies: 1 comment
-
There's not a great way to do this. See this issue for more details. Using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two objects, both of which extend:
{ params: Param[] }
I want to have a component that handles the field array for params but there does not seem to be a
FieldArray<Param[]>
type I can pass down. I an tell the component to accept{ control: Control<{params: Param[]}> }
, but I get an error when I try to pass in a control because the full field list is different.Any help would be appreciated!
(I'm trying to do the router with hook forms approach but passing down the Control instead of going through a state manager's context. )
Beta Was this translation helpful? Give feedback.
All reactions