Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/framework/react/guides/ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const serverValidate = createServerValidate({
export const handleForm = createServerFn({
method: 'POST',
})
.inputValidator((data: unknown) => {
.validator((data: unknown) => {
if (!(data instanceof FormData)) {
throw new Error('Invalid form data')
}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@tanstack/react-form-start": "^1.33.0",
"@tanstack/react-router": "^1.134.9",
"@tanstack/react-start": "^1.134.9",
"@tanstack/react-start": "^1.168.27",
"@tanstack/react-store": "^0.11.0",
"react": "19.1.0",
"react-dom": "19.1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/react/tanstack-start/src/utils/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const serverValidate = createServerValidate({
})

export const handleForm = createServerFn({ method: 'POST' })
.inputValidator((data: unknown) => {
.validator((data: unknown) => {
if (!(data instanceof FormData)) {
throw new Error('Invalid form data')
}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-form-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"devalue": "^5.3.2"
},
"devDependencies": {
"@tanstack/react-start": "^1.134.9",
"@tanstack/react-start": "^1.168.27",
"@types/react": "~19.1.0",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^5.1.1",
Expand All @@ -62,7 +62,7 @@
"vite": "^7.2.2"
},
"peerDependencies": {
"@tanstack/react-start": "^1.134.9",
"@tanstack/react-start": "^1.168.27",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-form-start/src/createServerValidate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface CreateServerValidateOptions<
}

const serverFn = createServerFn({ method: 'POST' })
.inputValidator(
.validator(
(data: { formData: unknown; info?: unknown; defaultOpts: unknown }) => {
return data
},
Expand Down
Loading