Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: refetchOnWindowFocus is made false to global level

Palash guptadce9f36a8e7d
diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx
index 0abe9a6453..99c7758c41 100644
--- a/frontend/src/index.tsx
+++ b/frontend/src/index.tsx
@@ -13,7 +13,13 @@ if (process.env.NODE_ENV === 'development') {
reportWebVitals(console.log);
}
-const queryClient = new QueryClient();
+const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ refetchOnWindowFocus: false,
+ },
+ },
+});
ReactDOM.render(
<QueryClientProvider client={queryClient}>