@tanstack/react-router 0.0.1-beta.264 → 0.0.1-beta.266
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/Matches.js.map +1 -1
- package/build/cjs/RouterProvider.js +0 -1
- package/build/cjs/RouterProvider.js.map +1 -1
- package/build/cjs/router.js +2 -0
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +2 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +355 -355
- package/build/types/Matches.d.ts +1 -0
- package/build/umd/index.development.js +2 -1
- 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 +2 -2
- package/src/Matches.tsx +1 -0
- package/src/RouterProvider.tsx +0 -1
- package/src/router.ts +5 -2
package/build/types/Matches.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface RouteMatch<TRouteTree extends AnyRoute = AnyRoute, TRouteId ext
|
|
|
21
21
|
loadPromise?: Promise<void>;
|
|
22
22
|
loaderData?: RouteById<TRouteTree, TRouteId>['types']['loaderData'];
|
|
23
23
|
__resolveLoadPromise?: () => void;
|
|
24
|
+
routeContext: RouteById<TRouteTree, TRouteId>['types']['routeContext'];
|
|
24
25
|
context: RouteById<TRouteTree, TRouteId>['types']['allContext'];
|
|
25
26
|
search: FullSearchSchema<TRouteTree> & RouteById<TRouteTree, TRouteId>['types']['fullSearchSchema'];
|
|
26
27
|
fetchedAt: number;
|
|
@@ -1554,7 +1554,6 @@
|
|
|
1554
1554
|
pathChanged: routerState.location.href !== routerState.resolvedLocation?.href
|
|
1555
1555
|
});
|
|
1556
1556
|
if (document.querySelector) {
|
|
1557
|
-
console.log('hello', routerState.location.hash);
|
|
1558
1557
|
const el = document.getElementById(routerState.location.hash);
|
|
1559
1558
|
if (el) {
|
|
1560
1559
|
el.scrollIntoView();
|
|
@@ -2318,6 +2317,7 @@
|
|
|
2318
2317
|
error: undefined,
|
|
2319
2318
|
paramsError: parseErrors[index],
|
|
2320
2319
|
loadPromise: Promise.resolve(),
|
|
2320
|
+
routeContext: undefined,
|
|
2321
2321
|
context: undefined,
|
|
2322
2322
|
abortController: new AbortController(),
|
|
2323
2323
|
shouldReloadDeps: undefined,
|
|
@@ -2597,6 +2597,7 @@
|
|
|
2597
2597
|
};
|
|
2598
2598
|
matches[index] = match = {
|
|
2599
2599
|
...match,
|
|
2600
|
+
routeContext: replaceEqualDeep(match.routeContext, beforeLoadContext),
|
|
2600
2601
|
context: replaceEqualDeep(match.context, context),
|
|
2601
2602
|
abortController
|
|
2602
2603
|
};
|