@tanstack/react-start 1.168.32 → 1.168.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-start",
|
|
3
|
-
"version": "1.168.
|
|
3
|
+
"version": "1.168.33",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -157,12 +157,12 @@
|
|
|
157
157
|
"pathe": "^2.0.3",
|
|
158
158
|
"@tanstack/react-router": "1.170.18",
|
|
159
159
|
"@tanstack/react-start-client": "1.168.16",
|
|
160
|
-
"@tanstack/react-start-rsc": "0.1.
|
|
160
|
+
"@tanstack/react-start-rsc": "0.1.32",
|
|
161
161
|
"@tanstack/react-start-server": "1.167.22",
|
|
162
162
|
"@tanstack/router-utils": "1.162.2",
|
|
163
163
|
"@tanstack/start-client-core": "1.170.14",
|
|
164
|
-
"@tanstack/start-
|
|
165
|
-
"@tanstack/start-
|
|
164
|
+
"@tanstack/start-server-core": "1.169.17",
|
|
165
|
+
"@tanstack/start-plugin-core": "1.171.24"
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"@rsbuild/core": "^2.0.0",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
"devDependencies": {
|
|
185
|
-
"@rsbuild/core": "^2.0
|
|
185
|
+
"@rsbuild/core": "^2.1.0",
|
|
186
186
|
"@types/node": ">=20"
|
|
187
187
|
},
|
|
188
188
|
"scripts": {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: migrate-from-nextjs
|
|
3
3
|
description: >-
|
|
4
4
|
Step-by-step migration from Next.js App Router to TanStack Start:
|
|
5
5
|
route definition conversion, API mapping, server function
|
|
6
6
|
conversion from Server Actions, middleware conversion, data
|
|
7
7
|
fetching pattern changes.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
metadata:
|
|
9
|
+
type: lifecycle
|
|
10
|
+
library: tanstack-start
|
|
11
|
+
library_version: '1.168.32'
|
|
11
12
|
requires:
|
|
12
13
|
- start-core
|
|
13
14
|
- react-start
|
|
@@ -5,10 +5,11 @@ description: >-
|
|
|
5
5
|
StartServer, React-specific imports, re-exports from
|
|
6
6
|
@tanstack/react-router, full project setup with React, useServerFn
|
|
7
7
|
hook.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
metadata:
|
|
9
|
+
type: framework
|
|
10
|
+
library: tanstack-start
|
|
11
|
+
library_version: '1.168.32'
|
|
12
|
+
framework: react
|
|
12
13
|
requires:
|
|
13
14
|
- start-core
|
|
14
15
|
sources:
|
|
@@ -18,9 +19,7 @@ sources:
|
|
|
18
19
|
|
|
19
20
|
# React Start (`@tanstack/react-start`)
|
|
20
21
|
|
|
21
|
-
This skill
|
|
22
|
-
|
|
23
|
-
This skill covers the React-specific bindings, setup, and patterns for TanStack Start.
|
|
22
|
+
This is the React Start entry skill. Use the workflow below, then load only the package skill that owns the boundary you are changing. Do not read `start-core`, Router Core, and React Router manuals in full before starting.
|
|
24
23
|
|
|
25
24
|
For React Server Components patterns, see [react-start/server-components](./server-components/SKILL.md).
|
|
26
25
|
|
|
@@ -30,6 +29,16 @@ For React Server Components patterns, see [react-start/server-components](./serv
|
|
|
30
29
|
|
|
31
30
|
> **CRITICAL**: Types are FULLY INFERRED. Never cast, never annotate inferred values.
|
|
32
31
|
|
|
32
|
+
## Full-Stack Workflow
|
|
33
|
+
|
|
34
|
+
1. Define the route and component with `createFileRoute`.
|
|
35
|
+
2. Put private or server-only reads and writes in `createServerFn`; call reads directly from loaders.
|
|
36
|
+
3. Use `useServerFn` for component mutations, then invalidate the router or query cache after the write resolves.
|
|
37
|
+
4. Enforce auth in every private server function or server route. Add `beforeLoad` separately for navigation UX.
|
|
38
|
+
5. Run the initial SSR path, client navigation, mutation plus reload, direct anonymous endpoint request, runtime response assertion, type tests, and production build.
|
|
39
|
+
|
|
40
|
+
Load `start-core/server-routes` instead of `server-functions` only when a raw HTTP endpoint is required. Load `router-core/*` only for the specific routing concern involved, such as params or search validation.
|
|
41
|
+
|
|
33
42
|
## Package API Surface
|
|
34
43
|
|
|
35
44
|
`@tanstack/react-start` re-exports everything from `@tanstack/start-client-core` plus:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: server-components
|
|
3
3
|
description: >-
|
|
4
4
|
Implement, review, debug, and refactor TanStack Start React Server
|
|
5
5
|
Components in React 19 apps. Use when tasks mention
|
|
@@ -12,9 +12,10 @@ description: >-
|
|
|
12
12
|
migration from Next App Router RSC patterns. Do not use for
|
|
13
13
|
generic SSR or non-TanStack RSC frameworks except brief
|
|
14
14
|
comparison.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
metadata:
|
|
16
|
+
type: sub-skill
|
|
17
|
+
library: tanstack-start
|
|
18
|
+
library_version: '1.168.32'
|
|
18
19
|
requires:
|
|
19
20
|
- react-start
|
|
20
21
|
- start-core/server-functions
|