@tanstack/router-core 0.0.1-beta.151 → 0.0.1-beta.153
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/fileRoute.js.map +1 -1
- package/build/cjs/route.js.map +1 -1
- package/build/cjs/router.js +4 -2
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +4 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +116 -116
- package/build/types/index.d.ts +153 -186
- package/build/umd/index.development.js +4 -2
- 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/fileRoute.ts +79 -37
- package/src/link.ts +62 -62
- package/src/route.ts +63 -88
- package/src/routeInfo.ts +58 -139
- package/src/router.ts +106 -114
|
@@ -1038,6 +1038,7 @@
|
|
|
1038
1038
|
});
|
|
1039
1039
|
let routeCursor = foundRoute || this.routesById['__root__'];
|
|
1040
1040
|
let matchedRoutes = [routeCursor];
|
|
1041
|
+
// let includingLayouts = true
|
|
1041
1042
|
while (routeCursor?.parentRoute) {
|
|
1042
1043
|
routeCursor = routeCursor.parentRoute;
|
|
1043
1044
|
if (routeCursor) matchedRoutes.unshift(routeCursor);
|
|
@@ -1524,11 +1525,12 @@
|
|
|
1524
1525
|
const ctx = _ctx;
|
|
1525
1526
|
this.dehydratedData = ctx.payload;
|
|
1526
1527
|
this.options.hydrate?.(ctx.payload);
|
|
1528
|
+
const routerState = ctx.router.state;
|
|
1527
1529
|
this.__store.setState(s => {
|
|
1528
1530
|
return {
|
|
1529
1531
|
...s,
|
|
1530
|
-
...
|
|
1531
|
-
resolvedLocation:
|
|
1532
|
+
...routerState,
|
|
1533
|
+
resolvedLocation: routerState.location
|
|
1532
1534
|
};
|
|
1533
1535
|
});
|
|
1534
1536
|
await this.load();
|