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.

fix(meter-explorer): not persisting query after page refresh (#11948)

Vinicius Lourenço3e6339019ea6
diff --git a/frontend/src/container/MeterExplorer/Explorer/Explorer.tsx b/frontend/src/container/MeterExplorer/Explorer/Explorer.tsx
index 566d24d499..e2a5f75e0c 100644
--- a/frontend/src/container/MeterExplorer/Explorer/Explorer.tsx
+++ b/frontend/src/container/MeterExplorer/Explorer/Explorer.tsx
@@ -35,7 +35,6 @@ function Explorer(): JSX.Element {
handleRunQuery,
stagedQuery,
updateAllQueriesOperators,
- handleSetQueryData,
currentQuery,
} = useQueryBuilder();
const { safeNavigate } = useSafeNavigate();
@@ -67,15 +66,6 @@ function Explorer(): JSX.Element {
[updateAllQueriesOperators],
);
- useEffect(() => {
- handleSetQueryData(0, {
- ...initialQueryMeterWithType.builder.queryData[0],
- source: 'meter',
- });
-
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
-
const exportDefaultQuery = useMemo(
() =>
updateAllQueriesOperators(