UNPKG

react-router-query-hooks

Version:
9 lines (6 loc) 230 B
import { useLocation } from "react-router-dom"; import withParsedQuery from "./withParsedQuery"; export default ({ queryOptions } = {}) => { const location = useLocation(); return withParsedQuery(location, queryOptions); };