diff options
| author | Dhravya Shah <[email protected]> | 2025-09-18 20:16:57 -0700 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2025-09-18 20:30:04 -0700 |
| commit | dd3122a4831eac3507b7feb8ba2f1816be5eb3cf (patch) | |
| tree | 4c3eda087974eaaea0b91c85f839eaa8650522e8 /apps/browser-extension/utils/query-client.ts | |
| parent | newish get started page (diff) | |
| download | supermemory-09-18-format_browser_extension.tar.xz supermemory-09-18-format_browser_extension.zip | |
format browser extension09-18-format_browser_extension
Diffstat (limited to 'apps/browser-extension/utils/query-client.ts')
| -rw-r--r-- | apps/browser-extension/utils/query-client.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/browser-extension/utils/query-client.ts b/apps/browser-extension/utils/query-client.ts index c1839691..dac7b639 100644 --- a/apps/browser-extension/utils/query-client.ts +++ b/apps/browser-extension/utils/query-client.ts @@ -1,7 +1,7 @@ /** * React Query configuration for supermemory browser extension */ -import { QueryClient } from "@tanstack/react-query" +import { QueryClient } from "@tanstack/react-query"; export const queryClient = new QueryClient({ defaultOptions: { @@ -11,9 +11,9 @@ export const queryClient = new QueryClient({ retry: (failureCount, error) => { // Don't retry on authentication errors if (error?.constructor?.name === "AuthenticationError") { - return false + return false; } - return failureCount < 3 + return failureCount < 3; }, refetchOnWindowFocus: false, }, @@ -21,4 +21,4 @@ export const queryClient = new QueryClient({ retry: 1, }, }, -}) +}); |