Skip to content

Conversation

@LeCarbonator
Copy link
Contributor

@LeCarbonator LeCarbonator commented Oct 26, 2025

🎯 Changes

This PR adds the useTypedAppFormContext hook, which accepts a formOptions for typing, while using context to get the form instance instead.

This is a less type safe variant of withForm, which is why we will only recommend it in cases where passing as prop is not possible.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Todos

  • Finalize naming of the hook
  • Add docs section to address its use cases

@changeset-bot
Copy link

changeset-bot bot commented Oct 26, 2025

🦋 Changeset detected

Latest commit: d3b1481

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tanstack/react-form Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LeCarbonator LeCarbonator changed the title feat(reac-tofmr): add useTypedAppFormContext feat(react-form): add useTypedAppFormContext Oct 26, 2025
@nx-cloud
Copy link

nx-cloud bot commented Oct 26, 2025

View your CI Pipeline Execution ↗ for commit d3b1481

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 1m 7s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 6s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-26 19:49:12 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 26, 2025

More templates

@tanstack/angular-form

npm i https://pkg.pr.new/@tanstack/angular-form@1826

@tanstack/form-core

npm i https://pkg.pr.new/@tanstack/form-core@1826

@tanstack/form-devtools

npm i https://pkg.pr.new/@tanstack/form-devtools@1826

@tanstack/lit-form

npm i https://pkg.pr.new/@tanstack/lit-form@1826

@tanstack/react-form

npm i https://pkg.pr.new/@tanstack/react-form@1826

@tanstack/react-form-devtools

npm i https://pkg.pr.new/@tanstack/react-form-devtools@1826

@tanstack/solid-form

npm i https://pkg.pr.new/@tanstack/solid-form@1826

@tanstack/svelte-form

npm i https://pkg.pr.new/@tanstack/svelte-form@1826

@tanstack/vue-form

npm i https://pkg.pr.new/@tanstack/vue-form@1826

commit: d3b1481

@codecov
Copy link

codecov bot commented Oct 26, 2025

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 52.94%. Comparing base (6892ed0) to head (d3b1481).
⚠️ Report is 39 commits behind head on main.

Files with missing lines Patch % Lines
packages/react-form/src/createFormHook.tsx 87.50% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1826       +/-   ##
===========================================
- Coverage   90.35%   52.94%   -37.42%     
===========================================
  Files          38       14       -24     
  Lines        1752      187     -1565     
  Branches      444       29      -415     
===========================================
- Hits         1583       99     -1484     
+ Misses        149       77       -72     
+ Partials       20       11        -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant