File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 " skills/v1/route-ids.md" ,
3737 " skills/v1/route-lazy-loading.md" ,
3838 " skills/v1/route-masking.md" ,
39- " skills/v1/route-meta.md" ,
4039 " skills/v1/route-trees.md" ,
41- " skills/v1/router-cli.md" ,
4240 " skills/v1/router-devtools.md" ,
4341 " skills/v1/router-setup.md" ,
4442 " skills/v1/router-state.md" ,
Original file line number Diff line number Diff line change 22 " index.md" ,
33 " router-setup.md" ,
44 " installation-guides.md" ,
5- " router-cli.md" ,
65 " routing-strategies.md" ,
76 " route-trees.md" ,
87 " layouts.md" ,
98 " route-ids.md" ,
10- " route-meta.md" ,
119 " params.md" ,
1210 " search-params.md" ,
1311 " custom-search-serialization.md" ,
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ Examples:
3535const route = createRoute ({
3636 getParentRoute : () => rootRoute ,
3737 path: " dashboard" ,
38- loader : () => ({
39- summary: fetchSummary (),
40- details: defer ( fetchDetails ()),
38+ loader : async () => ({
39+ summary: await fetchSummary (),
40+ detailsPromise: fetchDetails ()
4141 }),
4242})
4343```
4444
4545``` ts
4646await mutateProject (projectId , payload )
47- router .invalidate ({ to: " /projects " } )
47+ router .invalidate ()
4848```
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ Examples:
3232const route = createRoute ({
3333 getParentRoute : () => rootRoute ,
3434 path: " dashboard" ,
35- loader : () => ({
36- summary: fetchSummary (),
37- details: defer ( fetchDetails () ),
35+ loader : async () => ({
36+ summary: await fetchSummary (),
37+ detailsPromise: fetchDetails (),
3838 }),
3939})
4040```
4141
4242``` tsx
43- const { summary, details } = route .useLoaderData ()
43+ const { summary, detailsPromise } = route .useLoaderData ()
4444```
Original file line number Diff line number Diff line change @@ -31,8 +31,12 @@ Examples:
3131const route = createRoute ({
3232 getParentRoute : () => rootRoute ,
3333 path: " projects/$projectId" ,
34- head : ({ loaderData }) => ({
35- title: loaderData .project .name ,
34+ head : () => ({
35+ meta: [
36+ {
37+ title: loaderData .project .name ,
38+ },
39+ ],
3640 }),
3741})
3842```
Original file line number Diff line number Diff line change @@ -26,11 +26,9 @@ Core setup and structure:
2626
2727- Creating and mounting the router -> ` @skills/router/router-setup `
2828- Choosing installation tooling -> ` @skills/router/installation-guides `
29- - Scaffolding routes with the Router CLI -> ` @skills/router/router-cli `
3029- Defining the overall route hierarchy -> ` @skills/router/route-trees `
3130- Creating a shared UI shell across child routes -> ` @skills/router/layouts `
3231- Stabilizing references when paths change -> ` @skills/router/route-ids `
33- - Attaching route metadata for UI or analytics -> ` @skills/router/route-meta `
3432- Picking a routing strategy -> ` @skills/router/routing-strategies `
3533
3634Routing params and search:
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ resources:
1010 - https://tanstack.com/router/latest/docs/framework/react/installation/with-vite
1111 - https://tanstack.com/router/latest/docs/framework/react/installation/with-webpack
1212 - https://tanstack.com/router/latest/docs/framework/react/installation/with-esbuild
13- - https://tanstack.com/router/latest/docs/framework/react/installation/with-router-cli
1413---
1514
1615# Installation Guides
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments