UNPKG

@tanstack/react-router

Version:

Modern and scalable routing for React applications

18 lines (17 loc) 562 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const useMatch = require("./useMatch.cjs"); function useParams(opts) { return useMatch.useMatch({ from: opts.from, shouldThrow: opts.shouldThrow, structuralSharing: opts.structuralSharing, strict: opts.strict, select: (match) => { const params = opts.strict === false ? match.params : match._strictParams; return opts.select ? opts.select(params) : params; } }); } exports.useParams = useParams; //# sourceMappingURL=useParams.cjs.map