We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a707af commit 6f28e5cCopy full SHA for 6f28e5c
src/index.tsx
@@ -21,6 +21,15 @@ const queryClient = new QueryClient({
21
},
22
});
23
24
+// Cache plugin metadata indefinitely since it doesn't change while the app is running
25
+queryClient.setQueryDefaults(['api', 'plugins'], {
26
+ staleTime: Infinity,
27
+ cacheTime: Infinity,
28
+ refetchOnMount: false,
29
+ refetchOnWindowFocus: false,
30
+ refetchOnReconnect: false,
31
+});
32
+
33
if (['production', 'staging'].includes(import.meta.env.MODE)) {
34
// Use a placeholder DSN as we'll be using the tunnel to proxy all Sentry React errors
35
Sentry.init({
0 commit comments