mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Pixel/links development. New validations folder. More refactoring.
This commit is contained in:
parent
88639dfe83
commit
247e14646b
136 changed files with 1395 additions and 516 deletions
16
src/components/hooks/usePageParameters.ts
Normal file
16
src/components/hooks/usePageParameters.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { useMemo } from 'react';
|
||||
import { useNavigation } from './useNavigation';
|
||||
|
||||
export function usePageParameters() {
|
||||
const {
|
||||
query: { page, pageSize, search },
|
||||
} = useNavigation();
|
||||
|
||||
return useMemo(() => {
|
||||
return {
|
||||
page,
|
||||
pageSize,
|
||||
search,
|
||||
};
|
||||
}, [page, pageSize, search]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue