UNPKG

@tanstack/react-router

Version:

Modern and scalable routing for React applications

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