update optimize
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-06-06 15:06:19 +03:30
parent c9d152fbaf
commit 804f6f69ae
8 changed files with 103 additions and 20 deletions
+18
View File
@@ -0,0 +1,18 @@
import { QueryClient } from "@tanstack/react-query";
import { cache } from "react";
export const getQueryClient = cache(
() =>
new QueryClient({
defaultOptions: {
queries: {
retry: false,
retryOnMount: false,
staleTime: 5 * 60_000,
},
mutations: {
retry: false,
},
},
}),
);