Major Changes
- Release the first alpha of TanStack Form v2.
Minor Changes
-
#2419
584fcd9- Restorefield.replaceValue()and addform.replaceFieldValue()for replacing an array element in place -
Feature: Specify default options for
createFormHook -
#2365
f8bbc25- Feat: Field groups may now omit identity bindings likefields={{ a: 'a' }}
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. -
#2401
541abc8- Keep Vue field values and validation state reactive in child components, and keep slot and injected field handlers connected after resets and field name changes. -
Updated dependencies [
584fcd9,a679245,395d61c,f8bbc25]:- @tanstack/form-core@2.0.0-alpha.3