refactor: rewrite useAutomatischInfo with RQ and REST API

This commit is contained in:
Ali BARIN
2024-02-29 17:59:45 +00:00
parent 83815d3caa
commit 14c04ee4ac
8 changed files with 71 additions and 28 deletions

View File

@@ -9,6 +9,7 @@ import useAuthentication from 'hooks/useAuthentication.js';
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 1000,
refetchOnWindowFocus: false,
// provides a convenient default while it should be overridden for other HTTP methods
queryFn: async ({ queryKey, signal }) => {