Skip to content
Source
Sign inSign up
TanStack/form

[v2] Vue reactivity now works #2401

Mergedcrutchcorn(GitHub profile, opens in a new tab)merged 26 commits intoalpha fromrefs/pull/2401/headmerged by crutchcorn(GitHub profile, opens in a new tab)

Showing 14 changed files with 9 additions and 4 deletions (loading 11).

x
0 of 14 viewed, 14 left
5 additions and 0 deletions.changeset/silent-tools-cry.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/vue-form': patch
+---
+​
+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.
1 addition and 1 deletionpackages/preact-form/tsconfig.jsonModified
View file
@@ -4,7 +4,7 @@
"jsx": "react-jsx",
"jsxImportSource": "preact",
"moduleResolution": "Bundler",
- "types": ["vitest/browser"]
+ "types": ["vitest/browser", "node"]
},
"include": ["src", "tests", "vitest.config.ts"],
"exclude": ["eslint.config.js"]
3 additions and 3 deletionspackages/vue-form/src/AppForm/contexts.lib.tsModified
View file
@@ -1,6 +1,6 @@
import { inject } from 'vue'
import type { InjectionKey } from 'vue'
-import type { AnyInternalFieldApi } from '@tanstack/form-core/internals'
+import type { AnyFieldApi } from '@tanstack/form-core'
import type { InternalVueFormApi } from '../VueForm/VueFormApi.lib'
​
export const FormContext = Symbol(
@@ -8,9 +8,9 @@