@tanstack/react-form#
2.0.0-alpha.3#
Major Changes#
- Release the first alpha of TanStack Form v2.
Minor Changes#
Feature: Specify default options for
createFormHookAdd default form, field, and form group options to
createFormHook.#2426
395d61c- BREAKING:schemaOutputsno longer exists. It is superceded byvalidatorOutputs. This is only a name change, the schema's result is the same as beforevalidatorOutputsnow allows a callback validator to specify data that the submit function should know. Schemas do this automatically, but now you can do it manually as well:run: ({ createOutput }) => createOutput('This is not a validation error and onSubmit can use this')The current map is:
Validator onSubmit: ({ validatorOutputs }) => ...Schema Schema's output data createOutput(X)XDefault callback validator undefinedValidation error N/A, onSubmitdoesn't run#2365
f8bbc25- Feat: Field groups may now omit identity bindings likefields={{ a: 'a' }}#2369
28c693f- Feat: Field and Form components can now be nested to create namespaces.
Patch Changes#
Refactor: Adapter
formOptions/appFormOptionsno longer shim the core types and runtime.BREAKING:
formOptions.looseSchemaandformOptions.strictSchemanow require a schema as first parameter. This locks down inference to get the best type safety out of it vs. the options object alone.Fix:
formOptions.looseSchemanow allowsdefaultValuesto omit properties instead of requiring them to be explicitly undefined.Fix: Subscription selectors now infer tuple return values without requiring
as const.#2434
fceed8a- Provide the field context inside App FormArrayField, so registered field components render there instead of throwing.Updated dependencies [
584fcd9,a679245,395d61c,f8bbc25]:- @tanstack/form-core@2.0.0-alpha.3
2.0.0-alpha.2#
Minor Changes#
Patch Changes#
#2348
4e37c69- Refactor: AdapterformOptions/appFormOptionsno longer shim the core types and runtime.BREAKING:
formOptions.looseSchemaandformOptions.strictSchemanow require a schema as first parameter. This locks down inference to get the best type safety out of it vs. the options object alone.Fix:
formOptions.looseSchemanow allowsdefaultValuesto omit properties instead of requiring them to be explicitly undefined.#2339
c7e102b- Fix: Subscription selectors now infer tuple return values without requiringas const.Updated dependencies [
532cba4,4e37c69,c7e102b,63c9ea3]:- @tanstack/form-core@2.0.0-alpha.2
2.0.0-alpha.1#
Minor Changes#
Patch Changes#
2.0.0-alpha.0#
Major Changes#
Patch Changes#
- Updated dependencies [
e68d53b]:- @tanstack/form-core@2.0.0-alpha.0
1.33.3#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.33.3
1.33.2#
Patch Changes#
#2240
d756476- Use fresh FieldApi in current render on name changeUpdated dependencies []:
- @tanstack/form-core@1.33.2
1.33.1#
Patch Changes#
#2206
df52a12- Re-exportuseSelectorfrom TanStack Store adapters and document migration from deprecateduseStore(fixes #2203).Updated dependencies [
3c57f6d,7b3012b,741da6b,3c57f6d,6cd477a,887a129]:- @tanstack/form-core@1.33.1
1.33.1#
Patch Changes#
- Re-export
useSelectorfrom@tanstack/react-store(fixes #2203).useStoreremains available but is deprecated; preferimport { useSelector } from '@tanstack/react-form'.
1.33.0#
Minor Changes#
Patch Changes#
- Updated dependencies [
808f158]:- @tanstack/form-core@1.33.0
1.32.1#
Patch Changes#
1.32.0#
Patch Changes#
re-render arrays when length doesn't change but values do (#2172)
Updated dependencies [
5dd1ed4,556e35e,427b3d9,01f51b5,4d250c0]:- @tanstack/form-core@1.32.0
1.31.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.31.0
1.30.0#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.30.0
1.29.3#
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.29.3
1.29.2#
Patch Changes#
Remove errant
Field.Fieldusage anduseForm().useField()(94f9841)Updated dependencies []:
- @tanstack/form-core@1.29.2
1.29.1#
Patch Changes#
- Updated dependencies [
6b8aa1e]:- @tanstack/form-core@1.29.1
1.29.0#
Minor Changes#
- Adds extension method to AppForm allowing for teams to extend upstream AppForms (#2106)
Patch Changes#
- Updated dependencies []:
- @tanstack/form-core@1.29.0
1.28.6#
Patch Changes#
1.28.5#
Patch Changes#
Reimplement fallback selector for Subscribe component (#2071)
Use a named function for the
withFormHOC return to enable Fast Refresh. (#2067)Updated dependencies [
39932c1]:- @tanstack/form-core@1.28.5
1.28.4#
Patch Changes#
Refactor internals for substancially faster performance (#2035)
Updated dependencies [
f88faaf]:- @tanstack/form-core@1.28.4
1.28.3#
Patch Changes#
1.28.2#
Patch Changes#
- Updated dependencies [
a07862d]:- @tanstack/form-core@1.28.2
1.28.1#
Patch Changes#
Fix compile error with webpack when using react v17 (#1982)
Fix various issues with SSR. Things should now work as-expected in many many more scenarios than before (#1890)
Updated dependencies [
72d970a]:- @tanstack/form-core@1.28.1
1.28.0#
Minor Changes#
- add
useTypedAppFormContext(#1826)
Patch Changes#
fix: flatten errors consistently when validating before field mount (#2003)
Fixed an issue where
field.errorswas incorrectly nested as[[error]]instead of[error]whenform.validate()was called manually before a field was mounted. Theflat(1)operation is now applied by default unlessdisableErrorFlatis explicitly set to true, ensuring consistent error structure regardless of when validation occurs.Updated dependencies [
41faffe,7f2453b]:- @tanstack/form-core@1.28.0
1.27.7#
Patch Changes#
- Updated dependencies [
3519cce]:- @tanstack/form-core@1.27.7
1.27.6#
Patch Changes#
- Updated dependencies [
c526378]:- @tanstack/form-core@1.27.6
1.27.5#
Patch Changes#
1.27.4#
Patch Changes#
fix(react-form): prevent array field re-render when child property changes (#1930)
Array fields with
mode="array"were incorrectly re-rendering when a property on any array element was mutated. This was a regression introduced in v1.27.0 by the React Compiler compatibility changes.The fix ensures that
mode="array"fields only re-render when the array length changes (items added/removed), not when individual item properties are modified.Fixes #1925
Updated dependencies [
c753d5e]:- @tanstack/form-core@1.27.4
1.27.3#
Patch Changes#
- Updated dependencies [
c2ecf5d]:- @tanstack/form-core@1.27.3
1.27.2#
Patch Changes#
use React 18's useId hook by default for formId generation, only calling Math.random() as a fallback if no formId is provided. (#1913)
fix(react-form): ensure
FormApi.handleSubmitreturns a promise again (#1924)Updated dependencies []:
- @tanstack/form-core@1.27.2
1.27.1#
Patch Changes#
Fix issues with methods not being present in React adapter (#1903)
Updated dependencies [
3b080ec]:- @tanstack/form-core@1.27.1
1.27.0#
Patch Changes#
Minorly improve performance and fix issues with Start (#1882)
Fixed issues with React Compiler (#1893)
Remove useId for react 17 user compatibility, replaced with uuid (#1850)
Updated dependencies [
8afbfc3,4e92a91]:- @tanstack/form-core@1.27.0
1.26.0#
Patch Changes#
- Updated dependencies [
74f40e7]:- @tanstack/form-core@1.26.0
1.25.0#
Minor Changes#
- Update Start to Release Candidate version. Extracted start, remix and nextJs adapters to the respective libraries @tanstack/react-form-start, @tanstack/react-form-remix, and @tanstack/react-form-nextjs, (#1771)
Patch Changes#
- Updated dependencies [
004835f]:- @tanstack/form-core@1.25.0
1.23.9#
Patch Changes#
- Updated dependencies [
8ede6d0]:- @tanstack/form-core@1.24.5
1.23.8#
Patch Changes#
Allow interfaces to be assigned to
withFieldGroup'sprops. (#1816)Allow returning all other
ReactNodes not justJSX.Elementin therenderfunction ofwithFormandwithFieldGroup. (#1817)form-core: Optimise event client emissions and minor layout tweaks (#1758)
Updated dependencies [
94631cb]:- @tanstack/form-core@1.24.4
1.23.7#
Patch Changes#
- Updated dependencies [
33cce81]:- @tanstack/form-core@1.24.3: respect dontValidate option in formApi array modifiers (#1775)
1.23.6#
Patch Changes#
- Updated dependencies [
74af33e]:- @tanstack/form-core@1.24.2: prevent runtime errors when using
deleteField(#1706)
- @tanstack/form-core@1.24.2: prevent runtime errors when using
1.23.5#
Patch Changes#
- Updated dependencies [
2cfe44c]:- @tanstack/form-core@1.24.1
1.23.4#
Patch Changes#
- Updated dependencies [
c978946]:- @tanstack/form-core@1.24.0
1.23.3#
Patch Changes#
- Updated dependencies [
f608267]:- @tanstack/form-core@1.23.3
1.23.2#
Patch Changes#
- Updated dependencies [
7cf3728]:- @tanstack/form-core@1.23.2
1.23.1#
Patch Changes#
- Updated dependencies [
db96886]:- @tanstack/form-core@1.23.1
1.23.0#
Patch Changes#
1.21.1#
Patch Changes#
- Updated dependencies [
d2b6063]:- @tanstack/form-core@1.22.0