UNPKG

@tanstack/react-router

Version:

Modern and scalable routing for React applications

11 lines (10 loc) 405 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const useRouterState = require("./useRouterState.cjs"); function useLocation(opts) { return useRouterState.useRouterState({ select: (state) => (opts == null ? void 0 : opts.select) ? opts.select(state.location) : state.location }); } exports.useLocation = useLocation; //# sourceMappingURL=useLocation.cjs.map