PostHog / PostHog/posthog

Dashboard refresh aborted when switching browser tabs during data reload

Open
#54,641 1 comment 0 reactions 1 assignee View on GitHub

@MattPua is already working on this.

Since Apr 15, 2026.

feature/dashboards team/product-analytics team/query-performance
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Problem

When refreshing dashboard data and switching browser tabs, the dashboard view can unmount. That unmount triggers an AbortController (or equivalent cancellation), which aborts the in-flight refresh even though the user still expects the data load to complete.

Expected

Refreshing dashboard data should remain resilient to tab visibility changes / unmount timing, or cancellation should only happen when the user explicitly navigates away or cancels the operation—not merely from tab switching during a refresh.

Notes

Worth tracing: what unmounts on tab blur/hidden, and whether abort is tied to component lifecycle too aggressively.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.