MCPcopy
hub / github.com/umami-software/umami / usePageParameters

Function usePageParameters

src/components/hooks/usePageParameters.ts:4–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { useNavigation } from './useNavigation';
3
4export function usePageParameters() {
5 const {
6 query: { page, pageSize, search, orderBy, sortDescending },
7 } = useNavigation();
8
9 return useMemo(() => {
10 return {
11 page,
12 pageSize,
13 search,
14 orderBy,
15 sortDescending,
16 };
17 }, [orderBy, page, pageSize, search, sortDescending]);
18}

Callers

nothing calls this directly

Calls 1

useNavigationFunction · 0.90

Tested by

no test coverage detected