@tanstack/react-router 0.0.1-beta.155 → 0.0.1-beta.157
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/build/cjs/index.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +61 -61
- package/build/types/index.d.ts +5 -5
- package/build/umd/index.development.js +25 -8
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +3 -3
- package/src/index.tsx +8 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-router",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.157",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "tanstack/router",
|
|
7
7
|
"homepage": "https://tanstack.com/router",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"tiny-invariant": "^1.3.1",
|
|
44
44
|
"tiny-warning": "^1.0.3",
|
|
45
45
|
"@gisatcz/cross-package-react-context": "^0.2.0",
|
|
46
|
-
"@tanstack/router-core": "0.0.1-beta.
|
|
47
|
-
"@tanstack/react-store": "0.0.1-beta.
|
|
46
|
+
"@tanstack/router-core": "0.0.1-beta.157",
|
|
47
|
+
"@tanstack/react-store": "0.0.1-beta.157"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rollup --config rollup.config.js"
|
package/src/index.tsx
CHANGED
|
@@ -82,7 +82,7 @@ declare module '@tanstack/router-core' {
|
|
|
82
82
|
TParentContext extends RouteConstraints['TParentContext'] = TParentRoute['__types']['routeContext'],
|
|
83
83
|
TAllParentContext extends RouteConstraints['TAllParentContext'] = TParentRoute['__types']['context'],
|
|
84
84
|
TRouteContext extends RouteConstraints['TRouteContext'] = RouteContext,
|
|
85
|
-
|
|
85
|
+
TAllContext extends RouteConstraints['TAllContext'] = MergeParamsFromParent<
|
|
86
86
|
TParentRoute['__types']['context'],
|
|
87
87
|
TRouteContext
|
|
88
88
|
>,
|
|
@@ -90,9 +90,9 @@ declare module '@tanstack/router-core' {
|
|
|
90
90
|
TChildren extends RouteConstraints['TChildren'] = unknown,
|
|
91
91
|
TRouteTree extends RouteConstraints['TRouteTree'] = AnyRoute,
|
|
92
92
|
> {
|
|
93
|
-
useMatch: <TStrict extends boolean = true, TSelected =
|
|
93
|
+
useMatch: <TStrict extends boolean = true, TSelected = TAllContext>(opts?: {
|
|
94
94
|
strict?: TStrict
|
|
95
|
-
select?: (search:
|
|
95
|
+
select?: (search: TAllContext) => TSelected
|
|
96
96
|
}) => TStrict extends true ? TSelected : TSelected | undefined
|
|
97
97
|
useLoader: <TStrict extends boolean = true, TSelected = TLoader>(opts?: {
|
|
98
98
|
strict?: TStrict
|
|
@@ -100,9 +100,12 @@ declare module '@tanstack/router-core' {
|
|
|
100
100
|
}) => TStrict extends true
|
|
101
101
|
? UseLoaderResult<TSelected>
|
|
102
102
|
: UseLoaderResult<TSelected> | undefined
|
|
103
|
-
useContext: <
|
|
103
|
+
useContext: <
|
|
104
|
+
TStrict extends boolean = true,
|
|
105
|
+
TSelected = TAllContext,
|
|
106
|
+
>(opts?: {
|
|
104
107
|
strict?: TStrict
|
|
105
|
-
select?: (search:
|
|
108
|
+
select?: (search: TAllContext) => TSelected
|
|
106
109
|
}) => TStrict extends true ? TSelected : TSelected | undefined
|
|
107
110
|
useRouteContext: <
|
|
108
111
|
TStrict extends boolean = true,
|