feat(dashboard): reuse reports filter on overview and add more operators (#31)
This commit is contained in:
@@ -3,6 +3,8 @@ import { api } from '@/trpc/client';
|
||||
export function useEventNames(
|
||||
params: Parameters<typeof api.chart.events.useQuery>[0]
|
||||
) {
|
||||
const query = api.chart.events.useQuery(params);
|
||||
const query = api.chart.events.useQuery(params, {
|
||||
staleTime: 1000 * 60 * 10,
|
||||
});
|
||||
return query.data ?? [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user