Skip to content

fix: type for use with decode-formdata#2052

Merged
crutchcorn merged 1 commit intoTanStack:mainfrom
icopp:fix-decode-typing
Mar 4, 2026
Merged

fix: type for use with decode-formdata#2052
crutchcorn merged 1 commit intoTanStack:mainfrom
icopp:fix-decode-typing

Conversation

@icopp
Copy link
Contributor

@icopp icopp commented Feb 24, 2026

🎯 Changes

The use of Parameters<typeof decode> here doesn't work right because decode has multiple definitions. This replaces that with a direct reference to the intended FormDataInfo type, with the ternaries as a workaround for decode-formdata having slightly wonky typing for decode.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm test:pr.

🚀 Release Impact

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

@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

🦋 Changeset detected

Latest commit: 4fdb7cc

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

This PR includes changesets to release 13 packages
Name Type
@tanstack/react-form-nextjs Patch
@tanstack/react-form-remix Patch
@tanstack/react-form-start Patch
@tanstack/form-core Patch
@tanstack/react-form Patch
@tanstack/angular-form Patch
@tanstack/vue-form Patch
@tanstack/solid-form Patch
@tanstack/svelte-form Patch
@tanstack/form-devtools Patch
@tanstack/lit-form Patch
@tanstack/react-form-devtools Patch
@tanstack/solid-form-devtools 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

@nx-cloud
Copy link

nx-cloud bot commented Mar 4, 2026

View your CI Pipeline Execution ↗ for commit 4fdb7cc

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

☁️ Nx Cloud last updated this comment at 2026-03-04 13:03:02 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 4, 2026

More templates

@tanstack/angular-form

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

@tanstack/form-core

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

@tanstack/form-devtools

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

@tanstack/lit-form

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

@tanstack/react-form

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

@tanstack/react-form-devtools

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

@tanstack/react-form-nextjs

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

@tanstack/react-form-remix

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

@tanstack/react-form-start

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

@tanstack/solid-form

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

@tanstack/solid-form-devtools

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

@tanstack/svelte-form

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

@tanstack/vue-form

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

commit: 0d7843c

@crutchcorn crutchcorn merged commit c1f5747 into TanStack:main Mar 4, 2026
4 checks passed
@sentry
Copy link

sentry bot commented Mar 4, 2026

Codecov Report

❌ Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (6892ed0) to head (4fdb7cc).
⚠️ Report is 144 commits behind head on main.

Files with missing lines Patch % Lines
...ages/react-form-nextjs/src/createServerValidate.ts 0.00% 3 Missing and 1 partial ⚠️
...kages/react-form-remix/src/createServerValidate.ts 0.00% 3 Missing and 1 partial ⚠️
...ages/react-form-start/src/createServerValidate.tsx 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #2052       +/-   ##
==========================================
- Coverage   90.35%   0.00%   -90.36%     
==========================================
  Files          38      11       -27     
  Lines        1752      99     -1653     
  Branches      444      29      -415     
==========================================
- Hits         1583       0     -1583     
+ Misses        149      85       -64     
+ Partials       20      14        -6     

☔ 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.

@github-actions github-actions bot mentioned this pull request Mar 4, 2026
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.

2 participants