aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/useQuery.js
blob: f246df7cea424b8d41bdc066cbcc129ae8eb130b (plain)
1
2
3
4
5
6
7
import { useMemo } from 'react';
import { useLocation } from 'react-router-dom';

export default () => {
  const { search } = useLocation();
  return useMemo(() => new URLSearchParams(search), [search]);
};