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(web-analytics): scope WebStatsTableTile dataNode key per tile (#59670)

Lucas Ricoy7eb8362a80c3
diff --git a/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx b/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx
index 5125d02155b5..17bc72373497 100644
--- a/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx
+++ b/frontend/src/scenes/web-analytics/tiles/WebAnalyticsTile.tsx
@@ -891,11 +891,13 @@ export const WebStatsTableTile = ({
control,
attachTo,
headerSlot,
+ uniqueKey,
}: QueryWithInsightProps<DataTableNode> & {
breakdownBy: WebStatsBreakdown
control?: JSX.Element
tileId: TileId
headerSlot?: React.ReactNode
+ uniqueKey: string
}): JSX.Element => {
const { togglePropertyFilter } = useActions(webAnalyticsLogic)
const { productTab } = useValues(webAnalyticsLogic)
@@ -1056,7 +1058,7 @@ export const WebStatsTableTile = ({
query,
insightProps,
context,
- uniqueKey: 'WebAnalytics.WebStatsTableTile',
+ uniqueKey,
})
return (
@@ -1067,13 +1069,7 @@ export const WebStatsTableTile = ({
dataNodeLogicProps={dataNodeLogicProps}
skeleton={<TableTileSkeleton numericColumns={numericColumns} />}
>
- <Query
- uniqueKey="WebAnalytics.WebStatsTableTile"
- attachTo={attachTo}
- query={query}
- readOnly={true}
- context={context}
- />
+ <Query uniqueKey={uniqueKey} attachTo={attachTo} query={query} readOnly={true} context={context} />
</WebAnalyticsTileSkeletonGate>
</div>
)
@@ -1420,6 +1416,7 @@ export const WebQuery = ({
control={control}
tileId={tileId}
headerSlot={headerSlot}
+ uniqueKey={uniqueKey}
/>
)
}