about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-29 19:50:14 -0600
committerGitHub <noreply@github.com>2023-11-29 17:50:14 -0800
commit005fc7cc386add96c044e27ae9af7a1725f730a0 (patch)
treeae2060434fd17fe6572a0bf943bc492103a7149a /src
parentc07d27645f2fdeb3d172de53c7a58b4b97b55421 (diff)
downloadvoidsky-005fc7cc386add96c044e27ae9af7a1725f730a0.tar.zst
Disable retrying globally (#2038)
Diffstat (limited to 'src')
-rw-r--r--src/lib/react-query.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/react-query.ts b/src/lib/react-query.ts
index 9886e87be..6ec620f74 100644
--- a/src/lib/react-query.ts
+++ b/src/lib/react-query.ts
@@ -12,6 +12,11 @@ export const queryClient = new QueryClient({
       // "first seen" timestamps on objects to determine if they're fresh.
       // Disable this optimization so that we can rely on "first seen" timestamps.
       structuralSharing: false,
+      // We don't want to retry queries by default, because in most cases we
+      // want to fail early and show a response to the user. There are
+      // exceptions, and those can be made on a per-query basis. For others, we
+      // should give users controls to retry.
+      retry: false,
     },
   },
 })