Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

402 B
Raw Blame
import { useMemo } from 'react';
import { useNavigation } from './useNavigation';

export function usePageParameters() {
  const {
    query: { page, pageSize, search, orderBy, sortDescending },
  } = useNavigation();

  return useMemo(() => {
    return {
      page,
      pageSize,
      search,
      orderBy,
      sortDescending,
    };
  }, [orderBy, page, pageSize, search, sortDescending]);
}