@tanstack/solid-router
Version:
Modern and scalable routing for Solid applications
9 lines • 423 B
JSX
import * as Solid from 'solid-js';
export const nonRouteComponentContext = process.env.NODE_ENV !== 'production'
? /* @__PURE__ */ Solid.createContext()
: undefined;
export function renderInNonRouteComponentContext(render, component) {
const Context = nonRouteComponentContext;
return <Context.Provider value={component}>{render()}</Context.Provider>;
}
//# sourceMappingURL=nonRouteComponentContext.jsx.map