@tanstack/react-router 0.0.1-beta.244 → 0.0.1-beta.245
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/Matches.js +2 -2
- package/build/cjs/Matches.js.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +355 -355
- package/build/types/Matches.d.ts +1 -1
- package/build/umd/index.development.js +2 -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/Matches.tsx +2 -2
package/build/types/Matches.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function Matches(): React.JSX.Element;
|
|
|
33
33
|
export declare function Match({ matchId }: {
|
|
34
34
|
matchId: string;
|
|
35
35
|
}): React.JSX.Element;
|
|
36
|
-
export declare
|
|
36
|
+
export declare const Outlet: React.NamedExoticComponent<object>;
|
|
37
37
|
export interface MatchRouteOptions {
|
|
38
38
|
pending?: boolean;
|
|
39
39
|
caseSensitive?: boolean;
|
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
}
|
|
1316
1316
|
invariant(false, 'Idle routeMatch status encountered during rendering! You should never see this. File an issue!');
|
|
1317
1317
|
}
|
|
1318
|
-
function Outlet() {
|
|
1318
|
+
const Outlet = /*#__PURE__*/React__namespace.memo(function Outlet() {
|
|
1319
1319
|
const matchId = React__namespace.useContext(matchContext);
|
|
1320
1320
|
const childMatchId = useRouterState({
|
|
1321
1321
|
select: s => {
|
|
@@ -1330,7 +1330,7 @@
|
|
|
1330
1330
|
return /*#__PURE__*/React__namespace.createElement(Match, {
|
|
1331
1331
|
matchId: childMatchId
|
|
1332
1332
|
});
|
|
1333
|
-
}
|
|
1333
|
+
});
|
|
1334
1334
|
function useMatchRoute() {
|
|
1335
1335
|
const {
|
|
1336
1336
|
matchRoute
|