@tanstack/react-router
Version:
Modern and scalable routing for React applications
17 lines (16 loc) • 415 B
JavaScript
import * as React from "react";
const routerContext = React.createContext(null);
function getRouterContext() {
if (typeof document === "undefined") {
return routerContext;
}
if (window.__TSR_ROUTER_CONTEXT__) {
return window.__TSR_ROUTER_CONTEXT__;
}
window.__TSR_ROUTER_CONTEXT__ = routerContext;
return routerContext;
}
export {
getRouterContext
};
//# sourceMappingURL=routerContext.js.map