@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.
@@ -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
- ...ctx.router.state,
1531
- resolvedLocation: ctx.router.state.location
1532
+ ...routerState,
1533
+ resolvedLocation: routerState.location
1532
1534
  };
1533
1535
  });
1534
1536
  await this.load();