chore(frontend): Optimize requests made to the backend (#6168)

This commit is contained in:
sp.wack 2025-01-09 19:00:26 +04:00 committed by GitHub
parent b45fc522c7
commit 3eae2e2aca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,10 @@ const queryClient = new QueryClient({
},
}),
defaultOptions: {
queries: {
staleTime: 1000 * 60 * 5, // 5 minutes
gcTime: 1000 * 60 * 15, // 15 minutes
},
mutations: {
onError: (error) => {
toast.error(error.message);