mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Unified loading states.
This commit is contained in:
parent
7b5591a3ce
commit
da8c7e99c5
52 changed files with 506 additions and 364 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { useApi } from '@/components/hooks';
|
||||
import { UseQueryOptions, QueryKey } from '@tanstack/react-query';
|
||||
import { ReactQueryOptions } from '@/lib/types';
|
||||
|
||||
export function useResultQuery<T>(
|
||||
type: string,
|
||||
params?: { [key: string]: any },
|
||||
options?: Omit<UseQueryOptions<T, Error, T, QueryKey>, 'queryKey' | 'queryFn'>,
|
||||
options?: ReactQueryOptions<T>,
|
||||
) {
|
||||
const { post, useQuery } = useApi();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue