Skip to content

withFieldGroup props used at runtime #2099

@dpeter99

Description

@dpeter99

Describe the bug

withFieldGroup's props values are used at runtime as a fallback even tho the docs explicitly say they are not used at runtime.

https://github.com/TanStack/form/blob/main/packages/react-form/src/createFormHook.tsx#L541

The props are clearly spread in the render.

Your minimal, reproducible example

Steps to reproduce

Expected behavior

Either update the docs or fix the behaviour.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

TanStack Form adapter

None

TanStack Form version

1.28.5

TypeScript version

5.9.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions