@tanstack/react-router 0.0.1-beta.8 → 0.0.1-beta.9

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.
@@ -1379,15 +1379,6 @@ function createRoute(routeConfig, options, parent, router) {
1379
1379
  });
1380
1380
  return route;
1381
1381
  }
1382
- function cascadeLoaderData(matches) {
1383
- matches.forEach((match, index) => {
1384
- const parent = matches[index - 1];
1385
-
1386
- if (parent) {
1387
- match.loaderData = replaceEqualDeep(match.loaderData, _extends({}, parent.loaderData, match.routeLoaderData));
1388
- }
1389
- });
1390
- }
1391
1382
 
1392
1383
  const rootRouteId = '__root__';
1393
1384
  const createRouteConfig = function createRouteConfig(options, children, isRoot, parentId, parentPath) {
@@ -2521,6 +2512,16 @@ function isCtrlEvent(e) {
2521
2512
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2522
2513
  }
2523
2514
 
2515
+ function cascadeLoaderData(matches) {
2516
+ matches.forEach((match, index) => {
2517
+ const parent = matches[index - 1];
2518
+
2519
+ if (parent) {
2520
+ match.loaderData = replaceEqualDeep(match.loaderData, _extends({}, parent.loaderData, match.routeLoaderData));
2521
+ }
2522
+ });
2523
+ }
2524
+
2524
2525
  const _excluded = ["type", "children", "target", "activeProps", "inactiveProps", "activeOptions", "disabled", "hash", "search", "params", "to", "preload", "preloadDelay", "preloadMaxAge", "replace", "style", "className", "onClick", "onFocus", "onMouseEnter", "onMouseLeave", "onTouchStart", "onTouchEnd"],
2525
2526
  _excluded2 = ["pending", "caseSensitive", "children"],
2526
2527
  _excluded3 = ["children", "router"];
@@ -2902,5 +2903,5 @@ function Prompt(_ref6) {
2902
2903
  return children != null ? children : null;
2903
2904
  }
2904
2905
 
2905
- export { DefaultErrorBoundary, MatchesProvider, Outlet, Prompt, RouterProvider, cascadeLoaderData, cleanPath, createBrowserHistory, createHashHistory, createMemoryHistory, createReactRouter, createRoute, createRouteConfig, createRouteMatch, createRouter, decode, defaultParseSearch, defaultStringifySearch, encode, functionalUpdate, interpolatePath, invariant, joinPaths, last, matchByPath, matchPathname, parsePathname, parseSearchWith, pick, replaceEqualDeep, resolvePath, rootRouteId, stringifySearchWith, trimPath, trimPathLeft, trimPathRight, usePrompt, warning };
2906
+ export { DefaultErrorBoundary, MatchesProvider, Outlet, Prompt, RouterProvider, cleanPath, createBrowserHistory, createHashHistory, createMemoryHistory, createReactRouter, createRoute, createRouteConfig, createRouteMatch, createRouter, decode, defaultParseSearch, defaultStringifySearch, encode, functionalUpdate, interpolatePath, invariant, joinPaths, last, matchByPath, matchPathname, parsePathname, parseSearchWith, pick, replaceEqualDeep, resolvePath, rootRouteId, stringifySearchWith, trimPath, trimPathLeft, trimPathRight, usePrompt, warning };
2906
2907
  //# sourceMappingURL=index.js.map