Skip to content

Expose useFormContext#601

Closed
UrbanChrisy wants to merge 1 commit into
TanStack:mainfrom
UrbanChrisy:patch-1
Closed

Expose useFormContext#601
UrbanChrisy wants to merge 1 commit into
TanStack:mainfrom
UrbanChrisy:patch-1

Conversation

@UrbanChrisy

Copy link
Copy Markdown

Exposes the form context via the already made hook.

Stop prop drilling the formAPI down the tree.

@crutchcorn

Copy link
Copy Markdown
Member

We're removing FormContext via this PR:

#588

Apologies for not communicating this more

@crutchcorn crutchcorn closed this Feb 16, 2024
@UrbanChrisy UrbanChrisy deleted the patch-1 branch February 18, 2024 07:51
@UrbanChrisy

Copy link
Copy Markdown
Author

@crutchcorn How would you nest a field in another component within the form?

Or is the idea to force you to pass it down so it's all typesafe?

@xmsz-stu

xmsz-stu commented Nov 6, 2024

Copy link
Copy Markdown

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants