add function tokenLifeExtension

This commit is contained in:
smanylov
2026-01-12 13:39:35 +07:00
parent 6b9279f802
commit cb5a005041
4 changed files with 39 additions and 6 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ const getQueryClientDefaultConfig = () => ({
})
export function makeQueryClient() {
return new QueryClient(getQueryClientDefaultConfig())
return new QueryClient(getQueryClientDefaultConfig());
}
export const getQueryClient = cache(() => {
if (typeof window === 'undefined') {
return new QueryClient(getQueryClientDefaultConfig())
return new QueryClient(getQueryClientDefaultConfig())
} else {
// @ts-ignore
if (!globalThis.__APP_QUERY_CLIENT__) {