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

Function useUsersQuery

src/components/hooks/queries/useUsersQuery.ts:5–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { usePagedQuery } from '../usePagedQuery';
4
5export function useUsersQuery() {
6 const { get } = useApi();
7 const { modified } = useModified(`users`);
8
9 return usePagedQuery({
10 queryKey: ['users:admin', { modified }],
11 queryFn: (pageParams: any) => {
12 return get('/admin/users', {
13 ...pageParams,
14 });
15 },
16 });
17}

Callers 2

UserSelectFunction · 0.90
UsersDataTableFunction · 0.90

Calls 4

useApiFunction · 0.90
useModifiedFunction · 0.90
usePagedQueryFunction · 0.90
getFunction · 0.50

Tested by

no test coverage detected