@tanstack/react-router 1.133.3 → 1.133.8
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/dist/cjs/Matches.cjs +4 -1
- package/dist/cjs/Matches.cjs.map +1 -1
- package/dist/esm/Matches.js +5 -2
- package/dist/esm/Matches.js.map +1 -1
- package/dist/llms/index.js +8 -0
- package/dist/llms/rules/guide.d.ts +1 -1
- package/dist/llms/rules/guide.js +5 -3
- package/dist/llms/rules/installation.d.ts +2 -0
- package/dist/llms/rules/installation.js +968 -0
- package/dist/llms/rules/setup-and-architecture.d.ts +1 -1
- package/dist/llms/rules/setup-and-architecture.js +242 -1036
- package/package.json +2 -2
- package/src/Matches.tsx +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-router",
|
|
3
|
-
"version": "1.133.
|
|
3
|
+
"version": "1.133.8",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"tiny-invariant": "^1.3.3",
|
|
81
81
|
"tiny-warning": "^1.0.3",
|
|
82
82
|
"@tanstack/history": "1.133.3",
|
|
83
|
-
"@tanstack/router-core": "1.133.
|
|
83
|
+
"@tanstack/router-core": "1.133.8"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@testing-library/jest-dom": "^6.6.3",
|
package/src/Matches.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import warning from 'tiny-warning'
|
|
3
|
+
import { rootRouteId } from '@tanstack/router-core'
|
|
3
4
|
import { CatchBoundary, ErrorComponent } from './CatchBoundary'
|
|
4
5
|
import { useRouterState } from './useRouterState'
|
|
5
6
|
import { useRouter } from './useRouter'
|
|
@@ -12,6 +13,7 @@ import type {
|
|
|
12
13
|
ValidateSelected,
|
|
13
14
|
} from './structuralSharing'
|
|
14
15
|
import type {
|
|
16
|
+
AnyRoute,
|
|
15
17
|
AnyRouter,
|
|
16
18
|
DeepPartial,
|
|
17
19
|
Expand,
|
|
@@ -41,10 +43,12 @@ declare module '@tanstack/router-core' {
|
|
|
41
43
|
|
|
42
44
|
export function Matches() {
|
|
43
45
|
const router = useRouter()
|
|
46
|
+
const rootRoute: AnyRoute = router.routesById[rootRouteId]
|
|
44
47
|
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
const PendingComponent =
|
|
49
|
+
rootRoute.options.pendingComponent ?? router.options.defaultPendingComponent
|
|
50
|
+
|
|
51
|
+
const pendingElement = PendingComponent ? <PendingComponent /> : null
|
|
48
52
|
|
|
49
53
|
// Do not render a root Suspense during SSR or hydrating from SSR
|
|
50
54
|
const ResolvedSuspense =
|