Skip to content

Commit

Permalink
fix: upgrade TanStack Start (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn authored Jul 8, 2024
1 parent 6eee4f4 commit f989a1e
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 83 deletions.
7 changes: 3 additions & 4 deletions examples/react/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
"dependencies": {
"@tanstack/form-core": "^0.25.3",
"@tanstack/react-form": "^0.26.0",
"@tanstack/react-router": "^1.42.0",
"@tanstack/router-vite-plugin": "^1.41.0",
"@tanstack/start": "^1.42.1",
"@tanstack/react-router": "^1.43.13",
"@tanstack/start": "^1.43.13",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vinxi": "^0.3.11"
"vinxi": "^0.3.12"
},
"devDependencies": {
"@types/node": "^20.9.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"decode-formdata": "^0.7.5"
},
"devDependencies": {
"@tanstack/start": "^1.42.1",
"@tanstack/start": "^1.43.13",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.0",
Expand All @@ -87,7 +87,7 @@
"vite": "^5.1.4"
},
"peerDependencies": {
"@tanstack/start": "^1.40.1",
"@tanstack/start": "^1.43.13",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
Expand Down
4 changes: 1 addition & 3 deletions packages/react-form/src/start/getFormData.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { type FetchFn } from '@tanstack/start'
import { _tanstackInternalsCookie } from './utils'
import type { FetchFnCtx } from '@tanstack/start'
import type { ServerFormState } from './types'

type FetchFnCtx = Parameters<FetchFn<never, never>>[1]

export const initialFormState = {
errorMap: {
onServer: undefined,
Expand Down
Loading

0 comments on commit f989a1e

Please sign in to comment.