diff --git a/index.html b/index.html index 7e1a22db..55d61836 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,9 @@ Lume - +
diff --git a/package.json b/package.json index bf0fd1a1..a82ba64f 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@radix-ui/react-switch": "^1.0.3", "@radix-ui/react-toolbar": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", + "@tanstack/query-persist-client-core": "^5.12.1", "@tanstack/react-query": "^5.12.2", "@tanstack/react-query-devtools": "^5.12.2", "@tauri-apps/api": "2.0.0-alpha.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 513dfcce..9d753023 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,6 +50,9 @@ dependencies: '@radix-ui/react-tooltip': specifier: ^1.0.7 version: 1.0.7(@types/react-dom@18.2.17)(@types/react@18.2.41)(react-dom@18.2.0)(react@18.2.0) + '@tanstack/query-persist-client-core': + specifier: ^5.12.1 + version: 5.12.1 '@tanstack/react-query': specifier: ^5.12.2 version: 5.12.2(react@18.2.0) @@ -2078,6 +2081,12 @@ packages: resolution: {integrity: sha512-AUWLgdZEYq/ckMZrtKpofOwqxuFiEIdy3gZOh/ouIBVra9ijXVTxYt5cZFSjXJT4q/o0DMii6xMZuIJx2qXZ6g==} dev: false + /@tanstack/query-persist-client-core@5.12.1: + resolution: {integrity: sha512-ymXGe7xxEvnHpoPUOElLkrbwQt+sC3ONsBWfFzA1Ss2Av6e9HCADWgk9frE0T6kAtXP0hVksLRafbCpG6kpIHQ==} + dependencies: + '@tanstack/query-core': 5.12.1 + dev: false + /@tanstack/react-query-devtools@5.12.2(@tanstack/react-query@5.12.2)(react@18.2.0): resolution: {integrity: sha512-EpjYxwUBj+CuzAiB++FMeHzNey4TynuudfWVMsZg0uzLrnR5I0j1CWHJkNsTutb/Db9TNG1Ae66n8ywVvPd1gQ==} peerDependencies: diff --git a/src/main.jsx b/src/main.jsx index 7269cc95..df781e5c 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -11,10 +11,7 @@ import App from './app'; const queryClient = new QueryClient({ defaultOptions: { queries: { - gcTime: 1000 * 60 * 60 * 24, // 24 hours - queries: { - retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 10000), // 10 seconds - }, + retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 10000), // 10 seconds }, }, });