Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tanstack/react-router

Package Overview
Dependencies
Maintainers
2
Versions
649
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/react-router - npm Package Compare versions

Comparing version 1.45.13 to 1.45.14

7

dist/esm/Match.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc