UNPKG

@tanstack/react-router

Version:

Modern and scalable routing for React applications

17 lines (16 loc) 387 B
import { useMatch } from "./useMatch.js"; function useSearch(opts) { return useMatch({ from: opts.from, strict: opts.strict, shouldThrow: opts.shouldThrow, structuralSharing: opts.structuralSharing, select: (match) => { return opts.select ? opts.select(match.search) : match.search; } }); } export { useSearch }; //# sourceMappingURL=useSearch.js.map