@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.
@@ -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
  };