@tanstack/react-router 0.0.1-beta.157 → 0.0.1-beta.159
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 +7 -6
- package/build/umd/index.development.js +22 -28
- 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 +2 -2
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.159",
|
|
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.159",
|
|
47
|
+
"@tanstack/react-store": "0.0.1-beta.159"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rollup --config rollup.config.js"
|
package/src/index.tsx
CHANGED
|
@@ -436,7 +436,7 @@ export const matchIdsContext = React.createContext<string[]>(null!)
|
|
|
436
436
|
export const routerContext = React.createContext<RegisteredRouter>(null!)
|
|
437
437
|
|
|
438
438
|
export type RouterProps<
|
|
439
|
-
TRouteTree extends AnyRoute =
|
|
439
|
+
TRouteTree extends AnyRoute = RegisteredRouter['routeTree'],
|
|
440
440
|
TDehydrated extends Record<string, any> = Record<string, any>,
|
|
441
441
|
> = Omit<RouterOptions<TRouteTree, TDehydrated>, 'context'> & {
|
|
442
442
|
router: Router<TRouteTree>
|
|
@@ -451,7 +451,7 @@ export function useRouterState<TSelected = RegisteredRouter['state']>(opts?: {
|
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
export function RouterProvider<
|
|
454
|
-
TRouteTree extends AnyRoute =
|
|
454
|
+
TRouteTree extends AnyRoute = RegisteredRouter['routeTree'],
|
|
455
455
|
TDehydrated extends Record<string, any> = Record<string, any>,
|
|
456
456
|
>({ router, ...rest }: RouterProps<TRouteTree, TDehydrated>) {
|
|
457
457
|
router.update(rest)
|