()
| 2 | import { useNavigation } from './useNavigation'; |
| 3 | |
| 4 | export 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 | } |
nothing calls this directly
no test coverage detected