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 |
Beta Was this translation helpful? Give feedback.
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'
}}/> |
Beta Was this translation helpful? Give feedback.
If I understood it right, you have a field group of
There's no shortcut for the
fieldsname besides listing them: