Repository navigation
Possible to use root object in withFieldGroup component?
#1996
|
I've got an object type that is often nested under another object in forms, prompting me to use Because |
Answered by
LeCarbonator
Jan 18, 2026
Replies: 1 comment 1 reply
|
If I understood it right, you have a field group of type FieldGroup = {
foo: string,
bar: number
}
type FormData = {
foo: string,
bar: number,
unrelated: {}
}There's no shortcut for the <FieldGroup form={form} fields={{
'foo': 'foo',
'bar': 'bar'
}}/> |
1 reply
Answer selected by
mhuggins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I understood it right, you have a field group of
There's no shortcut for the
fieldsname besides listing them: