Skip to content

Commit 5f2678b

Browse files
authored
Merge branch 'main' into main
2 parents e0dcbf0 + ddbf5b7 commit 5f2678b

File tree

34 files changed

+136
-83
lines changed

34 files changed

+136
-83
lines changed

docs/framework/lit/reference/classes/tanstackformcontroller.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Defined in: [tanstack-form-controller.ts:206](https://github.com/TanStack/form/b
7777
field<TName, TData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync>(fieldConfig, render): object
7878
```
7979
80-
Defined in: [tanstack-form-controller.ts:260](https://github.com/TanStack/form/blob/main/packages/lit-form/src/tanstack-form-controller.ts#L260)
80+
Defined in: [tanstack-form-controller.ts:259](https://github.com/TanStack/form/blob/main/packages/lit-form/src/tanstack-form-controller.ts#L259)
8181
8282
#### Type Parameters
8383
@@ -145,7 +145,7 @@ render: renderCallback<TParentData, TName, TData, TOnMount, TOnChange, TOnChange
145145
hostConnected(): void
146146
```
147147
148-
Defined in: [tanstack-form-controller.ts:250](https://github.com/TanStack/form/blob/main/packages/lit-form/src/tanstack-form-controller.ts#L250)
148+
Defined in: [tanstack-form-controller.ts:249](https://github.com/TanStack/form/blob/main/packages/lit-form/src/tanstack-form-controller.ts#L249)
149149
150150
Called when the host is connected to the component tree. For custom
151151
element hosts, this corresponds to the `connectedCallback()` lifecycle,
@@ -169,7 +169,7 @@ ReactiveController.hostConnected
169169
hostDisconnected(): void
170170
```
171171
172-
Defined in: [tanstack-form-controller.ts:256](https://github.com/TanStack/form/blob/main/packages/lit-form/src/tanstack-form-controller.ts#L256)
172+
Defined in: [tanstack-form-controller.ts:255](https://github.com/TanStack/form/blob/main/packages/lit-form/src/tanstack-form-controller.ts#L255)
173173
174174
Called when the host is disconnected from the component tree. For custom
175175
element hosts, this corresponds to the `disconnectedCallback()` lifecycle,

docs/framework/react/guides/reactivity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ The `form.Subscribe` component is best suited when you need to react to somethin
4949

5050
> The `form.Subscribe` component doesn't trigger component-level re-renders. Anytime the value subscribed to changes, only the `form.Subscribe` component re-renders.
5151
52-
The choice between whether to use `useStore` or `form.Subscibe` mainly boils down to that if it's rendered in the ui, reach for `form.Subscribe` for its optimizations perks, and if you need the reactivity within the logic, then `useStore` is the choice to make.
52+
The choice between whether to use `useStore` or `form.Subscribe` mainly boils down to that if it's rendered in the ui, reach for `form.Subscribe` for its optimizations perks, and if you need the reactivity within the logic, then `useStore` is the choice to make.

docs/framework/react/guides/ssr.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ Finally, we'll use `getFormDataFromServer` in our loader to get the state from o
102102
```tsx
103103
// app/routes/index.tsx
104104
import { createFileRoute } from '@tanstack/react-router'
105-
import { mergeForm, useForm, useTransform } from '@tanstack/react-form'
105+
import {
106+
mergeForm,
107+
useForm,
108+
useStore,
109+
useTransform,
110+
} from '@tanstack/react-form'
106111

107112
export const Route = createFileRoute('/')({
108113
component: Home,
@@ -241,7 +246,12 @@ Finally, we'll use `someAction` in our client-side form component.
241246
import { useActionState } from 'react'
242247
import { initialFormState } from '@tanstack/react-form/nextjs'
243248
// Notice the import is from `react-form`, not `react-form/nextjs`
244-
import { mergeForm, useForm, useTransform } from '@tanstack/react-form'
249+
import {
250+
mergeForm,
251+
useForm,
252+
useStore,
253+
useTransform,
254+
} from '@tanstack/react-form'
245255
import someAction from './action'
246256
import { formOpts } from './shared-code'
247257

@@ -385,7 +395,12 @@ Finally, the `action` will be called when the form submits.
385395
// routes/_index/route.tsx
386396
import { Form, useActionData } from '@remix-run/react'
387397

388-
import { mergeForm, useForm, useTransform } from '@tanstack/react-form'
398+
import {
399+
mergeForm,
400+
useForm,
401+
useStore,
402+
useTransform,
403+
} from '@tanstack/react-form'
389404
import {
390405
ServerValidateError,
391406
createServerValidate,

docs/framework/vue/quick-start.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,7 @@ const form = useForm({
2323
2424
<template>
2525
<div>
26-
<form
27-
@submit="
28-
(e) => {
29-
e.preventDefault()
30-
e.stopPropagation()
31-
form.handleSubmit()
32-
}
33-
"
34-
>
26+
<form @submit.prevent.stop="form.handleSubmit">
3527
<div>
3628
<form.Field name="fullName">
3729
<template v-slot="{ field }">

docs/reference/classes/fieldapi.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The current field state.
163163
getInfo(): FieldInfo<TParentData>
164164
```
165165

166-
Defined in: [packages/form-core/src/FieldApi.ts:1216](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1216)
166+
Defined in: [packages/form-core/src/FieldApi.ts:1217](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1217)
167167

168168
Gets the field information object.
169169

@@ -179,7 +179,7 @@ Gets the field information object.
179179
getMeta(): FieldMeta<TParentData, TName, TData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TFormOnMount, TFormOnChange, TFormOnChangeAsync, TFormOnBlur, TFormOnBlurAsync, TFormOnSubmit, TFormOnSubmitAsync>
180180
```
181181

182-
Defined in: [packages/form-core/src/FieldApi.ts:1184](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1184)
182+
Defined in: [packages/form-core/src/FieldApi.ts:1185](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1185)
183183

184184
#### Returns
185185

@@ -193,7 +193,7 @@ Defined in: [packages/form-core/src/FieldApi.ts:1184](https://github.com/TanStac
193193
getValue(): TData
194194
```
195195

196-
Defined in: [packages/form-core/src/FieldApi.ts:1166](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1166)
196+
Defined in: [packages/form-core/src/FieldApi.ts:1167](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1167)
197197

198198
Gets the current field value.
199199

@@ -254,7 +254,7 @@ insertValue(
254254
opts?): void
255255
```
256256
257-
Defined in: [packages/form-core/src/FieldApi.ts:1236](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1236)
257+
Defined in: [packages/form-core/src/FieldApi.ts:1237](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1237)
258258
259259
Inserts a value at the specified index, shifting the subsequent values to the right.
260260
@@ -284,7 +284,7 @@ Inserts a value at the specified index, shifting the subsequent values to the ri
284284
mount(): () => void
285285
```
286286
287-
Defined in: [packages/form-core/src/FieldApi.ts:1072](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1072)
287+
Defined in: [packages/form-core/src/FieldApi.ts:1067](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1067)
288288
289289
Mounts the field instance to the form.
290290
@@ -307,7 +307,7 @@ moveValue(
307307
opts?): void
308308
```
309309
310-
Defined in: [packages/form-core/src/FieldApi.ts:1292](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1292)
310+
Defined in: [packages/form-core/src/FieldApi.ts:1293](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1293)
311311
312312
Moves the value at the first specified index to the second specified index.
313313
@@ -337,7 +337,7 @@ Moves the value at the first specified index to the second specified index.
337337
pushValue(value, opts?): void
338338
```
339339
340-
Defined in: [packages/form-core/src/FieldApi.ts:1221](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1221)
340+
Defined in: [packages/form-core/src/FieldApi.ts:1222](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1222)
341341
342342
Pushes a new value to the field.
343343
@@ -363,7 +363,7 @@ Pushes a new value to the field.
363363
removeValue(index, opts?): void
364364
```
365365
366-
Defined in: [packages/form-core/src/FieldApi.ts:1268](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1268)
366+
Defined in: [packages/form-core/src/FieldApi.ts:1269](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1269)
367367
368368
Removes a value at the specified index.
369369
@@ -392,7 +392,7 @@ replaceValue(
392392
opts?): void
393393
```
394394
395-
Defined in: [packages/form-core/src/FieldApi.ts:1252](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1252)
395+
Defined in: [packages/form-core/src/FieldApi.ts:1253](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1253)
396396
397397
Replaces a value at the specified index.
398398
@@ -444,7 +444,7 @@ Updates the field's errorMap
444444
setMeta(updater): void
445445
```
446446
447-
Defined in: [packages/form-core/src/FieldApi.ts:1189](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1189)
447+
Defined in: [packages/form-core/src/FieldApi.ts:1190](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1190)
448448
449449
Sets the field metadata.
450450
@@ -466,7 +466,7 @@ Sets the field metadata.
466466
setValue(updater, options?): void
467467
```
468468
469-
Defined in: [packages/form-core/src/FieldApi.ts:1173](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1173)
469+
Defined in: [packages/form-core/src/FieldApi.ts:1174](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1174)
470470
471471
Sets the field value and run the `change` validator.
472472
@@ -495,7 +495,7 @@ swapValues(
495495
opts?): void
496496
```
497497
498-
Defined in: [packages/form-core/src/FieldApi.ts:1280](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1280)
498+
Defined in: [packages/form-core/src/FieldApi.ts:1281](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1281)
499499
500500
Swaps the values at the specified indices.
501501
@@ -525,7 +525,7 @@ Swaps the values at the specified indices.
525525
update(opts): void
526526
```
527527
528-
Defined in: [packages/form-core/src/FieldApi.ts:1114](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1114)
528+
Defined in: [packages/form-core/src/FieldApi.ts:1115](https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L1115)
529529
530530
Updates the field instance with new options.
531531

examples/angular/array/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^19.2.0",
1919
"@angular/platform-browser-dynamic": "^19.2.0",
2020
"@angular/router": "^19.2.0",
21-
"@tanstack/angular-form": "^1.1.0",
21+
"@tanstack/angular-form": "^1.1.2",
2222
"rxjs": "^7.8.2",
2323
"tslib": "^2.8.1",
2424
"zone.js": "^0.15.0"

examples/angular/simple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^19.2.0",
1919
"@angular/platform-browser-dynamic": "^19.2.0",
2020
"@angular/router": "^19.2.0",
21-
"@tanstack/angular-form": "^1.1.0",
21+
"@tanstack/angular-form": "^1.1.2",
2222
"rxjs": "^7.8.2",
2323
"tslib": "^2.8.1",
2424
"zone.js": "^0.15.0"

examples/lit/simple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:types": "tsc"
1010
},
1111
"dependencies": {
12-
"@tanstack/lit-form": "^1.1.0",
12+
"@tanstack/lit-form": "^1.1.2",
1313
"lit": "^3.2.1"
1414
},
1515
"devDependencies": {

examples/lit/ui-libraries/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@material/web": "^2.2.0",
13-
"@tanstack/lit-form": "^1.1.0",
13+
"@tanstack/lit-form": "^1.1.2",
1414
"lit": "^3.2.1"
1515
},
1616
"devDependencies": {

examples/react/array/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:types": "tsc"
1010
},
1111
"dependencies": {
12-
"@tanstack/react-form": "^1.1.0",
12+
"@tanstack/react-form": "^1.1.2",
1313
"react": "^19.0.0",
1414
"react-dom": "^19.0.0"
1515
},

0 commit comments

Comments
 (0)