@tanstack/react-router
Advanced tools
Comparing version 1.45.13 to 1.45.14
import * as React from 'react'; | ||
export declare function Match({ matchId }: { | ||
export declare const Match: React.NamedExoticComponent<{ | ||
matchId: string; | ||
}): import("react/jsx-runtime").JSX.Element; | ||
}>; | ||
export declare const MatchInner: React.NamedExoticComponent<{ | ||
matchId: string; | ||
}>; | ||
export declare const Outlet: React.NamedExoticComponent<object>; |
@@ -17,3 +17,5 @@ "use client"; | ||
import { rootRouteId } from "./root.js"; | ||
function Match({ matchId }) { | ||
const Match = React.memo(function MatchImpl({ | ||
matchId | ||
}) { | ||
var _a, _b; | ||
@@ -72,4 +74,6 @@ const router = useRouter(); | ||
) }) }); | ||
} | ||
function MatchInner({ matchId }) { | ||
}); | ||
const MatchInner = React.memo(function MatchInnerImpl({ | ||
matchId | ||
}) { | ||
var _a, _b; | ||
@@ -101,2 +105,6 @@ const router = useRouter(); | ||
}); | ||
const out = React.useMemo(() => { | ||
const Comp = route.options.component ?? router.options.defaultComponent; | ||
return Comp ? /* @__PURE__ */ jsx(Comp, {}, matchId) : /* @__PURE__ */ jsx(Outlet, {}); | ||
}, [matchId, route.options.component, router.options.defaultComponent]); | ||
const RouteErrorComponent = (route.options.errorComponent ?? router.options.defaultErrorComponent) || ErrorComponent; | ||
@@ -159,4 +167,2 @@ if (match.status === "notFound") { | ||
} | ||
const Comp = route.options.component ?? router.options.defaultComponent; | ||
const out = Comp ? /* @__PURE__ */ jsx(Comp, {}) : /* @__PURE__ */ jsx(Outlet, {}); | ||
return /* @__PURE__ */ jsxs(Fragment, { children: [ | ||
@@ -166,4 +172,4 @@ out, | ||
] }); | ||
} | ||
const Outlet = React.memo(function Outlet2() { | ||
}); | ||
const Outlet = React.memo(function OutletImpl() { | ||
const router = useRouter(); | ||
@@ -214,4 +220,5 @@ const matchId = React.useContext(matchContext); | ||
Match, | ||
MatchInner, | ||
Outlet | ||
}; | ||
//# sourceMappingURL=Match.js.map |
{ | ||
"name": "@tanstack/react-router", | ||
"version": "1.45.13", | ||
"version": "1.45.14", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1404378
17413