Skip to content

Commit

Permalink
Merge branch 'main' into s_d-jf-table
Browse files Browse the repository at this point in the history
  • Loading branch information
sjd78 authored Oct 30, 2024
2 parents 10d0a3e + 0cfe60b commit a51d69d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/app/queries/cache.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useMutation, useQuery } from "@tanstack/react-query";

import { deleteCache, getCache } from "@app/api/rest";
import { isRWXSupported } from "@app/Constants";

export const CacheQueryKey = "cache";
export const CleanProgressQueryKey = "cleanProgress";
Expand All @@ -10,6 +11,7 @@ export const useFetchCache = () =>
queryKey: [CacheQueryKey],
queryFn: getCache,
onError: (error) => console.log("error, ", error),
enabled: isRWXSupported,
});

export const useDeleteCacheMutation = (
Expand Down

0 comments on commit a51d69d

Please sign in to comment.