making-scenes-tab-aware

Installation
SKILL.md

Making scenes tab aware

PostHog's internal tabs keep scene root logics mounted even when a tab is inactive. That only works correctly when the scene is designed for it.

A fully tab-aware scene has three properties:

  1. The root SceneExport.logic is scoped per internal tab.
  2. Scene-owned URL sync only reacts for the active tab and updates inactive tabs without hijacking the browser URL.
  3. Any child logic that must survive React unmounts is attached to the scene root logic.

sceneLogic already injects tabId into both the scene component props and the scene logic props. See frontend/src/scenes/sceneLogic.tsx.

Use this skill when

Installs
3
GitHub Stars
513
First Seen
3 days ago
making-scenes-tab-aware — posthog/posthog-foss