Refactor filter handling for queries.

This commit is contained in:
Mike Cao committed 2025-07-02 01:44:12 -07:00
1 parent 5b300f1ff5
commit ee6c68d27c
107 files changed
+731 -835

No files matched your search

@@ -1,6 +1,6 @@
import { useApi, useModified } from '@/components/hooks';
export function useDeleteQuery(path: string, params?: { [key: string]: any }) {
export function useDeleteQuery(path: string, params?: Record<string, any>) {
const { del, useMutation } = useApi();
const { mutate, isPending, error } = useMutation({
mutationFn: () => del(path, params),