Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(experiments): decouples exposure loading indicator from metric group (#106130)

Rodrigo Iloro70b4f6e58338
diff --git a/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsx b/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsx
index 612927f3ce7c..a254eeee2faf 100644
--- a/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsx
+++ b/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsx
@@ -165,8 +165,7 @@ export function MetricsTable({
}
const hasColdMetric = isLaunched(experiment) && metrics.some((_, index) => !results[index] && !errors[index])
- const sectionLoading =
- sectionHasRecalculatingMetric(metrics)(recalculatingMetricUuids) || hasColdMetric || exposuresLoading
+ const sectionLoading = sectionHasRecalculatingMetric(metrics)(recalculatingMetricUuids) || hasColdMetric
return (
<DndContext
diff --git a/products/experiments/frontend/components/ExperimentMetaBar/ExperimentRefreshButton.tsx b/products/experiments/frontend/components/ExperimentMetaBar/ExperimentRefreshButton.tsx
index 111600f2a65d..4a5e60aa382b 100644
--- a/products/experiments/frontend/components/ExperimentMetaBar/ExperimentRefreshButton.tsx
+++ b/products/experiments/frontend/components/ExperimentMetaBar/ExperimentRefreshButton.tsx
@@ -88,6 +88,7 @@ function LegacyRefreshButton({ experiment }: { experiment: Experiment }): JSX.El
secondaryMetricsResults,
primaryMetricsResultsLoading,
secondaryMetricsResultsLoading,
+ exposuresLoading,
currentRefresh,
} = useValues(experimentLogic)
const { reportExperimentMetricsRefreshed } = useActions(experimentLogic)
@@ -97,7 +98,7 @@ function LegacyRefreshButton({ experiment }: { experiment: Experiment }): JSX.El
return (
<RefreshButton
- isRefreshing={primaryMetricsResultsLoading || secondaryMetricsResultsLoading}
+ isRefreshing={primaryMetricsResultsLoading || secondaryMetricsResultsLoading || exposuresLoading}
lastRefresh={lastRefresh}
onRefresh={() => {
reportExperimentMetricsRefreshed(experiment, true, {