-
-
Notifications
You must be signed in to change notification settings - Fork 682
[v2] Allow nesting of field groups #2363
Copy link
Copy link
Open
Labels
area: runtimeThis issue affects the runtime of the library.This issue affects the runtime of the library.scope: coreThis issue affects the core package, meaning any adapter is also affected by it.This issue affects the core package, meaning any adapter is also affected by it.type: enhancementThis requests an enhancement to existing behaviour.This requests an enhancement to existing behaviour.v2This issue affects v2 as well.This issue affects v2 as well.
Description
Activity
Metadata
Metadata
Assignees
Labels
area: runtimeThis issue affects the runtime of the library.This issue affects the runtime of the library.scope: coreThis issue affects the core package, meaning any adapter is also affected by it.This issue affects the core package, meaning any adapter is also affected by it.type: enhancementThis requests an enhancement to existing behaviour.This requests an enhancement to existing behaviour.v2This issue affects v2 as well.This issue affects v2 as well.
Describe the bug
In v2, a field group cannot be composed inside another field group.
The parent only exposes
fields, but the child requires aformprop. Passingform={fields}causes a TypeScript error. In v1, this worked withform={group}.Your minimal, reproducible example
N/A - this is a question about the core
Steps to reproduce
defineFieldGroup.form={fields}.Expected behavior
Nested field groups should be composable
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
N/A
TanStack Form adapter
None
TanStack Form version
v2.0.0-alpha.2
TypeScript version
No response
Additional context
No response