: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(frontend): remove dead in-app-tab docs and skills (#65914)
Paul D'Ambrae4637549e857
diff --git a/.agents/skills/making-scenes-tab-aware/SKILL.md b/.agents/skills/making-scenes-tab-aware/SKILL.mddeleted file mode 100644index 04b7502f6136..000000000000--- a/.agents/skills/making-scenes-tab-aware/SKILL.md+++ /dev/null@@ -1,97 +0,0 @@-----name: making-scenes-tab-aware-description: Guides converting PostHog frontend scenes to be tab aware for internal scene tabs. Use when adding or refactoring a `SceneExport` scene, fixing state leaking between internal tabs, preserving scene state across tab switches, or moving scene-level URL state out of child logics. Triggers on files with `SceneExport`, `tabId`, `tabAwareScene`, `urlToAction`, `actionToUrl`, or `useAttachedLogic`.------# 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--- Adding a new scene with `SceneExport`-- Refactoring an existing scene that loses filters, edit state, or form state on tab switch-- Fixing state bleed between two internal tabs showing the same scene type-- Replacing plain `urlToAction` / `actionToUrl` in scene root logic-- Splitting a resource logic into a tab-aware scene root plus attached child logic--## Start with an audit--1. Run the audit commands in [references/audit-commands.md](references/audit-commands.md).-2. Compare the current scene against the patterns in [references/repo-patterns.md](references/repo-patterns.md).-3. Work through the migration checklist in [references/migration-checklist.md](references/migration-checklist.md).--## Fast decision guide--### Scene is already fully tab aware--Examples:--- `frontend/src/scenes/insights/insightSceneLogic.tsx`-- `frontend/src/scenes/dashboard/dashboards/dashboardsLogic.ts`-- `products/endpoints/frontend/endpointSceneLogic.tsx`-- `products/workflows/frontend/WorkflowsScene.tsx`--Usually no structural work is needed.-Only follow existing patterns.--### Scene is partially tab aware--Examples:--- `products/actions/frontend/logics/actionLogic.ts`-- `frontend/src/scenes/subscriptions/subscriptionSceneLogic.tsx`--These scenes already isolate instances with `tabId` in their key, but they do not use the scene-level `tabAwareScene()` contract.-Treat them as good raw material for a full migration.--### Scene is not tab aware--Examples:--- `frontend/src/scenes/feature-flags/featureFlagLogic.ts`-- `frontend/src/scenes/product-tours/productTourLogic.ts`-- `frontend/src/scenes/dashboard/dashboardLogic.tsx`--These usually key by resource id, own router bindings directly, or depend on React-local state that disappears on tab switch.-They often need a dedicated scene-root logic added on top of the existing resource logic.--## Core rule--If a logic is the scene root referenced by `SceneExport.logic`, it should normally be keyed by `tabId` and own scene-level router sync.-If a logic is a child resource/editor/detail logic, it can key by `tabId + resource id` and be attached to the scene root with `useAttachedLogic`.--## What to avoid--- Root scene logic keyed only by resource id-- Plain `urlToAction` / `actionToUrl` on the scene root-- URL ownership spread across multiple nested logics-- Important scene state stored in React `useState`-- Child logics mounted only through the view layer when their state must survive tab switches--## Verification--At minimum:--1. Open the same scene type in two internal tabs.-2. Change scene state in one tab.-3. Confirm the other tab keeps its own independent state.-4. Switch away and back.-5. Confirm edit state, filters, and child-logic state are preserved.--Then run the relevant tests plus:--```bash-hogli lint:skills-hogli build:skills-```diff --git a/.agents/skills/making-scenes-tab-aware/references/audit-commands.md b/.agents/skills/making-scenes-tab-aware/references/audit-commands.mddeleted file mode 100644index 097c9c72a594..000000000000--- a/.agents/skills/making-scenes-tab-aware/references/audit-commands.md+++ /dev/null@@ -1,66 +0,0 @@-# Audit commands--Use these commands to classify the current scene before refactoring it.--## Find existing fully tab-aware scene roots--```bash-rg -n "tabAwareScene\\(" frontend/src/scenes products -g '!**/generated/**'-```--These are the best local examples to copy.--## Find plain router bindings that may need migration--```bash-rg -n "\\b(urlToAction|actionToUrl)\\(" frontend/src/scenes products -g '!**/generated/**'-```--Interpretation:--- If this is in a scene-root logic, it is usually a migration target.-- If this is in a nested logic, check whether the scene root should own that URL state instead.--## Find attached child logics--```bash-rg -n "useAttachedLogic\\(" frontend/src/scenes products -g '!**/generated/**'-```--These show which scenes already preserve child logic across tab switches.--## Find scene exports--```bash-rg -n "export const scene: SceneExport" frontend/src/scenes products -g '!**/generated/**'-```--For each scene export, inspect:--- `logic`-- `paramsToProps`-- whether the scene component expects `tabId`--## Find logic props that already include `tabId`--```bash-rg -n "tabId[:?]" frontend/src/scenes products -g '!**/generated/**'-```--Interpretation:--- `tabId` present in props/key but no `tabAwareScene()` usually means a partial migration-- no `tabId` at all on a scene-root logic usually means it is not tab aware--## Find scene roots still keyed by resource id--```bash-rg -n "key\\(" frontend/src/scenes products -g '!**/generated/**'-```--Then inspect whether the logic is:--- the `SceneExport.logic` root-- an attached child/resource logic--Root scene keyed by resource id is often a sign you need to split the scene root from the resource logic.diff --git a/.agents/skills/making-scenes-tab-aware/references/migration-checklist.md b/.agents/skills/making-scenes-tab-aware/references/migration-checklist.mddeleted file mode 100644index 0776af297ac1..000000000000--- a/.agents/skills/making-scenes-tab-aware/references/migration-checklist.md+++ /dev/null@@ -1,163 +0,0 @@-# Migration checklist--Use this checklist when converting a scene.--## 1. Confirm the scene boundary--- Find the `SceneExport` object.-- Identify the intended scene-root logic.-- Check whether the current scene export points directly at a resource/detail logic keyed by id.--If the scene export points straight at a resource logic like `featureFlagLogic({ id })`, that is usually the first thing to change.--## 2. Decide whether you need a new scene-root logic--You usually need a dedicated scene-root logic when any of these are true:--- The current root logic keys by resource id instead of `tabId`-- The current root logic owns route params, search params, or edit-mode state directly-- The scene has child editor/detail logic that should survive tab switches-- The scene uses React local state for state that should persist per tab--Good split pattern:--```text-SceneExport.logic -> featureFlagSceneLogic({ tabId, id })- └── useAttachedLogic(featureFlagLogic({ tabId, id }), featureFlagSceneLogic({ tabId, id }))-```--The scene root owns tab-scoped routing and breadcrumbs.-The child logic owns the resource/editor state.--## 3. Make the scene root tab aware--On the root scene logic:--- Add `tabId?: string` to props if not already present-- Add `tabAwareScene()`-- Do not key the root scene by resource id only-- Add a `breadcrumbs` selector--Important:--- `tabAwareScene()` is best for scene-root logics-- child logics can still key by `tabId + resource id`--## 4. Move scene-owned URL state into the root scene logic--At the scene root:--- Replace `urlToAction` with `tabAwareUrlToAction`-- Replace `actionToUrl` with `tabAwareActionToUrl`-- Parse route params, search params, and hash params into scene-root reducers/actions--Prefer this ownership model:--```text-URL <-> scene-root logic reducers/selectors-scene-root logic -> child logic props/actions-```--Avoid:--```text-URL <-> nested editor logic-URL <-> table logic-URL <-> modal logic-```--If a nested logic must read or update the inactive tab's URL state, use:--- `getTabSceneParams(tabId)`-- `updateTabUrl(tabId, pathname, searchParams, hashParams)`--Prefer using those from the scene root, not deep child logics.--## 5. Preserve child logic lifetime across tab switches--Remember:--- inactive scene roots stay mounted-- React-mounted child logics unmount when their component disappears--If a child logic must survive tab switches:--- mount it under the scene root with `useAttachedLogic`--Example:--```tsx-const sceneLogic = messageTemplateSceneLogic(props)-const logic = messageTemplateLogic(props)--useAttachedLogic(logic, sceneLogic)-```--Use this for:--- editors-- forms-- heavy data logics-- nested resource logic--## 6. Review React local state--Any state that should survive tab switches should not live in `useState`.--Move it into Kea when it represents:--- selected scene tab-- edit/view mode-- filters-- URL-backed state-- current sub-resource selection-- in-progress form/edit state--React local state is fine for truly disposable UI-only state.--## 7. Make keys intentional--Typical patterns:--- Scene root: `tabAwareScene()` only-- Attached child resource logic: `key(({ id, tabId }) => \`${tabId ?? ''}-${id}\`)`-- Draft/editor child logic: `key(({ tabId, id }) => \`${id}-${tabId}\`)`--Use resource-id-only keys only when the logic is intentionally global and not tab scoped.--## 8. Keep tab titles and back buttons correct--The scene root should expose `breadcrumbs`.--Remember:--- last breadcrumb controls tab title and icon-- previous breadcrumb controls the back button-- additional breadcrumbs are ignored by the tab chrome--## 9. Add or update tests--Recommended coverage:--- logic can mount with `tabId`-- two tab ids produce isolated state-- inactive-tab URL updates do not mutate the active browser URL-- switching away and back keeps attached child logic state--Useful references:--- `frontend/src/scenes/dashboard/dashboards/dashboardsLogic.test.ts`-- `products/endpoints/frontend/endpointSceneLogic.test.ts`-- `frontend/src/scenes/subscriptions/subscriptionSceneLogic.test.ts`--## 10. Manual verification--Test this flow in the app:--1. Open scene A in tab 1.-2. Open the same scene type in tab 2.-3. Change filters/edit mode/sub-tab in tab 1.-4. Confirm tab 2 is unchanged.-5. Switch away from tab 1 and back.-6. Confirm scene state is restored.-7. If the inactive tab updates its own URL-backed state, confirm the browser URL does not jump while another tab is active.diff --git a/.agents/skills/making-scenes-tab-aware/references/repo-patterns.md b/.agents/skills/making-scenes-tab-aware/references/repo-patterns.mddeleted file mode 100644index 6a8b84042356..000000000000--- a/.agents/skills/making-scenes-tab-aware/references/repo-patterns.md+++ /dev/null@@ -1,171 +0,0 @@-# Repo patterns--Use these files as the canonical local examples.--## Fully tab aware--### `insightSceneLogic`--Files:--- `frontend/src/scenes/insights/InsightScene.tsx`-- `frontend/src/scenes/insights/insightSceneLogic.tsx`-- `frontend/src/scenes/insights/InsightAsScene.tsx`--Why it is the best general example:--- Root scene logic uses `tabAwareScene()`-- Scene component requires `tabId`-- Route params and search params are owned by the scene root via `tabAwareUrlToAction` and `tabAwareActionToUrl`-- Heavy child logics are attached with `useAttachedLogic`-- The scene root stays mounted while child React components remount--Key lesson:--- Keep route ownership in the scene root.-- Keep resource/editor logic attached under that root.--### `dashboardsLogic`--Files:--- `frontend/src/scenes/dashboard/dashboards/dashboardsLogic.ts`-- `frontend/src/scenes/dashboard/dashboards/dashboardsLogic.test.ts`--Why it matters:--- Simple list scene with tab-aware query-param sync-- Good example of scene-owned filters and scene-owned URL params-- Good test fixture for mounting a tab-aware scene logic with `tabId`--### `endpointSceneLogic`--Files:--- `products/endpoints/frontend/endpointSceneLogic.tsx`-- `products/endpoints/frontend/endpointSceneLogic.test.ts`-- `frontend/src/lib/logic/scenes/tabSceneUtils.ts`--Why it matters:--- Strong example of inactive-tab URL updates-- Uses `getTabSceneParams()` and `updateTabUrl()` when the scene needs to update URL state without taking over the active browser location-- Includes tests that assert inactive-tab URL isolation--### `workflowsSceneLogic` and `messageTemplateSceneLogic`--Files:--- `products/workflows/frontend/WorkflowsScene.tsx`-- `products/workflows/frontend/TemplateLibrary/messageTemplateSceneLogic.ts`-- `products/workflows/frontend/TemplateLibrary/MessageTemplate.tsx`--Why they matter:--- `WorkflowsScene` is a clean tab-aware top-level list scene-- `messageTemplateSceneLogic` shows the minimum viable scene root: `tabAwareScene()` plus breadcrumbs-- `MessageTemplate.tsx` shows the `useAttachedLogic` pattern for keeping a child editor logic alive--## Partially tab aware--### `actionLogic`--Files:--- `products/actions/frontend/logics/actionLogic.ts`-- `products/actions/frontend/logics/actionEditLogic.tsx`-- `products/actions/frontend/pages/Action.tsx`--What it already does well:--- Keys logic by `tabId + id`-- Attaches `actionEditLogic` to `actionLogic`-- Preserves form state across tab switches--What it is missing:--- No `tabAwareScene()` scene-root wrapper-- Scene root and resource logic are still the same logic-- URL ownership still lives in nested logic--Migration implication:--- Good candidate to split into a small scene-root logic plus attached resource logic.--### `subscriptionSceneLogic`--Files:--- `frontend/src/scenes/subscriptions/subscriptionSceneLogic.tsx`-- `frontend/src/scenes/subscriptions/subscriptionSceneLogic.test.ts`--What it already does well:--- Keys by `tabId + id`-- Keeps per-tab detail state separate--What it is missing:--- No `tabAwareScene()` guard-- No scene-root router ownership layer--## Not tab aware--### `featureFlagLogic`--Files:--- `frontend/src/scenes/feature-flags/FeatureFlag.tsx`-- `frontend/src/scenes/feature-flags/featureFlagLogic.ts`--Why it is not tab aware:--- Root scene logic keys only by `id`-- Root scene logic owns plain `urlToAction`-- Scene component uses React-local state for scene-level UI state--Likely migration:--- Introduce a dedicated `featureFlagSceneLogic` keyed by `tabId`-- Keep `featureFlagLogic` as an attached child keyed by `tabId + id`-- Move scene-level route state and tab title ownership into the new scene root--### `productTourLogic`--Files:--- `frontend/src/scenes/product-tours/ProductTour.tsx`-- `frontend/src/scenes/product-tours/productTourLogic.ts`--Why it is not tab aware:--- Root scene logic keys only by `id`-- Plain `urlToAction` and `actionToUrl`-- Scene-level edit tab state lives in the resource logic instead of a tab-aware scene root--### `dashboardLogic`--Files:--- `frontend/src/scenes/dashboard/Dashboard.tsx`-- `frontend/src/scenes/dashboard/dashboardLogic.tsx`--Why it is useful as an anti-pattern example:--- Scene export points directly at a resource logic keyed by dashboard id-- Route ownership is in the resource logic-- This shape works for single-page routing but is harder to make truly tab aware than the split-root pattern used by insights and experiments--## Important implementation detail--`sceneLogic` injects `tabId` into:--- scene component props-- scene logic props--That happens in `frontend/src/scenes/sceneLogic.tsx` via:--- `activeSceneComponentParamsWithTabId`-- `activeSceneLogicPropsWithTabId`--This is why a scene-root logic can rely on `tabId` when mounted through `SceneExport.logic`.diff --git a/.agents/skills/writing-kea-logics/SKILL.md b/.agents/skills/writing-kea-logics/SKILL.mdindex e4a61dd5d4f8..992bee4550fc 100644--- a/.agents/skills/writing-kea-logics/SKILL.md+++ b/.agents/skills/writing-kea-logics/SKILL.md@@ -27,10 +27,8 @@ When in doubt about whether to use it, read here.- [using-kea-disposables](../using-kea-disposables/SKILL.md) — `setInterval`, `addEventListener`,and any other resource that needs cleanup.-- [making-scenes-tab-aware](../making-scenes-tab-aware/SKILL.md) — scene root logics keyed by- `tabId`, `tabAwareUrlToAction`/`tabAwareActionToUrl`, `useAttachedLogic`.-If your work overlaps either of those, read the companion skill first.+If your work overlaps it, read the companion skill first.## Core principlesdiff --git a/.agents/skills/writing-kea-logics/references/anti-patterns.md b/.agents/skills/writing-kea-logics/references/anti-patterns.mdindex 05ded1ecaf02..65512dc38cae 100644--- a/.agents/skills/writing-kea-logics/references/anti-patterns.md+++ b/.agents/skills/writing-kea-logics/references/anti-patterns.md@@ -278,11 +278,6 @@ Use `urls.foo(id)` so renames in one place propagate everywhere.The classic: `setQuery` updates URL → URL change fires `setQuery` again → infiniteloop. See [routing.md](routing.md) for guard patterns.-### Plain `urlToAction` on a scene root logic--Scene roots own the URL. Use `tabAwareUrlToAction` so inactive tabs don't hijack-navigation. See [making-scenes-tab-aware](../../making-scenes-tab-aware/SKILL.md).-### Mutating `window.location` directly```tsdiff --git a/.agents/skills/writing-kea-logics/references/connecting-logics.md b/.agents/skills/writing-kea-logics/references/connecting-logics.mdindex 524a0a7713d2..8de81ab53c11 100644--- a/.agents/skills/writing-kea-logics/references/connecting-logics.md+++ b/.agents/skills/writing-kea-logics/references/connecting-logics.md@@ -123,9 +123,7 @@ effect, so `useMountedLogic` is only needed when no values are pulled.## `useAttachedLogic` — keep a logic mounted through the scene-For scene-level child logics that must survive React unmounts during tab switching,-use `useAttachedLogic`. See-[making-scenes-tab-aware](../../making-scenes-tab-aware/SKILL.md).+For scene-level child logics that must survive React unmounts, use `useAttachedLogic`.## Anti-patternsdiff --git a/.agents/skills/writing-kea-logics/references/keyed-logics.md b/.agents/skills/writing-kea-logics/references/keyed-logics.mdindex 5922b309b9f5..dfebade88425 100644--- a/.agents/skills/writing-kea-logics/references/keyed-logics.md+++ b/.agents/skills/writing-kea-logics/references/keyed-logics.md@@ -131,12 +131,6 @@ The explicit `LogicWrapper<fooLogicType>` annotation gives you the right overloafor calling `fooLogic(props)`. For singletons it's not needed; for keyed logics itmakes the call-site types behave.-## Scene root logics keyed by `tabId`--Scene root logics use `tabId` as their key so each internal tab gets its own-instance. This is its own concern — see-[making-scenes-tab-aware](../../making-scenes-tab-aware/SKILL.md).-## Anti-patternsSee [anti-patterns.md](anti-patterns.md) for the consolidated catalogue.diff --git a/.agents/skills/writing-kea-logics/references/routing.md b/.agents/skills/writing-kea-logics/references/routing.mdindex 8a969d666e5e..68aa9d822c69 100644--- a/.agents/skills/writing-kea-logics/references/routing.md+++ b/.agents/skills/writing-kea-logics/references/routing.md@@ -5,9 +5,6 @@ PostHog uses `kea-router` for URL state. Two builders cover almost everything:- `urlToAction` — URL change → fire an action- `actionToUrl` — action fires → update the URL-For scene root logics, use `tabAwareUrlToAction` / `tabAwareActionToUrl` instead.-See [making-scenes-tab-aware](../../making-scenes-tab-aware/SKILL.md).-For imperative navigation, dispatch `router.actions.push(urls.foo())` inside a listener.## Why a router builder and not `useNavigate` / `useParams`diff --git a/.claude/commands/conventions.md b/.claude/commands/conventions.mdindex c6ddbbc0a612..053ba4e76a3a 100644--- a/.claude/commands/conventions.md+++ b/.claude/commands/conventions.md@@ -46,14 +46,13 @@ Hence the explicit separation between the data and view layers.- Props for both logics and components are PascalCase and end with `Props` (`DashboardLogicProps` & `DashboardMenuProps`)- Name the `.ts` file according to its main export: `DashboardMenu.ts` or `DashboardMenu.tsx` or `dashboardLogic.ts` or `Dashboard.scss`. Pay attention to the case.- Avoid `index.ts`, `styles.css`, and other generic names, even if this is the only file in a directory.-- Scenes & tabs- - Our app is built of _tabs that contain scenes_, managed through a scene router in `sceneLogic`.+- Scenes+ - Our app is built of _scenes_, managed through a scene router in `sceneLogic`.- A scene is the smallest unit in the router and for code splitting. Usually we split scenes by resource type (dashboard, insight) and function (edit, index).- Each scene (e.g. Dashboards) exports an object of type `SceneExport`, containing the scene's root `logic` and its React `component`.- - The scene's logic is automatically mounted if on a tab, and receives a `tabId: string` prop. It's strongly recommended to key your logic with this `tabId`.- - It's also strongly recommended to add the `tabAwareScene()` function to your scene's logic. This catches bugs when mounting the logic from somewhere without the `tabId` prop.- - Instead of `urlToAction` and `actionToUrl`, use `tabAwareUrlToAction` and `tabAwareActionToUrl`. Try to only only use them on the scene's logic, not in any deeper logics.- - When a scene becomes inactive (you open a different tab), it's still around in the background. However any logics mounted by React components through the view layer will unmount. Use `useAttachedLogic(dataNoteLogic(propsFromComponent), mySceneLogic({ tabId }))` to attach any logic to a scene logic. It'll persist until the scene's logic is unmounted, surviving React component remounts.+ - The scene's logic is automatically mounted and receives the scene's URL params as props (via `paramsToProps`).+ - Use `urlToAction` and `actionToUrl` on the scene's logic to sync state with the URL. Try to only use them on the scene's logic, not in any deeper logics.+ - Logics mounted by React components through the view layer unmount when the component unmounts. Use `useAttachedLogic(dataNodeLogic(propsFromComponent), mySceneLogic())` to attach a logic to the scene's logic so it persists until the scene's logic is unmounted, surviving React component remounts.- You can control what's shown on the tab via the `breadcrumbs` selector in your scene's logic. The last breadcrumb controls the title and the icon, the one before that controls the back button. If there are more breadcrumbs, they will be ignored.- Kea- It's worth repeating: think of the data flow. Then work to simplify it. Derive as much state as possible via selectors, update the source via cascading actions, and avoid complex loops where a value triggers a subscription which calls an action which changes the value which triggers the subscription, ...diff --git a/docs/published/handbook/engineering/conventions/frontend-coding.md b/docs/published/handbook/engineering/conventions/frontend-coding.mdindex 3c6392496c9e..c56f77f3fe43 100644--- a/docs/published/handbook/engineering/conventions/frontend-coding.md+++ b/docs/published/handbook/engineering/conventions/frontend-coding.md@@ -34,14 +34,13 @@ Hence the explicit separation between the data and view layers.- Props for both logics and components are PascalCase and end with `Props` (`DashboardLogicProps` & `DashboardMenuProps`)- Name the `.ts` file according to its main export: `DashboardMenu.ts` or `DashboardMenu.tsx` or `dashboardLogic.ts` or `Dashboard.scss`. Pay attention to the case.- Avoid `index.ts`, `styles.css`, and other generic names, even if this is the only file in a directory.-- Scenes & tabs- - Our app is built of _tabs that contain scenes_, managed through a scene router in `sceneLogic`.+- Scenes+ - Our app is built of _scenes_, managed through a scene router in `sceneLogic`.- A scene is the smallest unit in the router and for code splitting. Usually we split scenes by resource type (dashboard, insight) and function (edit, index).- Each scene (e.g. Dashboards) exports an object of type `SceneExport`, containing the scene's root `logic` and its React `component`.- - The scene's logic is automatically mounted if on a tab, and receives a `tabId: string` prop. It's strongly recommended to key your logic with this `tabId`.- - It's also strongly recommended to add the `tabAwareScene()` function to your scene's logic. This catches bugs when mounting the logic from somewhere without the `tabId` prop.- - Instead of `urlToAction` and `actionToUrl`, use `tabAwareUrlToAction` and `tabAwareActionToUrl`. Try to only only use them on the scene's logic, not in any deeper logics.- - When a scene becomes inactive (you open a different tab), it's still around in the background. However any logics mounted by React components through the view layer will unmount. Use `useAttachedLogic(dataNoteLogic(propsFromComponent), mySceneLogic({ tabId }))` to attach any logic to a scene logic. It'll persist until the scene's logic is unmounted, surviving React component remounts.+ - The scene's logic is automatically mounted and receives the scene's URL params as props (via `paramsToProps`).+ - Use `urlToAction` and `actionToUrl` on the scene's logic to sync state with the URL. Try to only use them on the scene's logic, not in any deeper logics.+ - Logics mounted by React components through the view layer unmount when the component unmounts. Use `useAttachedLogic(dataNodeLogic(propsFromComponent), mySceneLogic())` to attach a logic to the scene's logic so it persists until the scene's logic is unmounted, surviving React component remounts.- You can control what's shown on the tab via the `breadcrumbs` selector in your scene's logic. The last breadcrumb controls the title and the icon, the one before that controls the back button. If there are more breadcrumbs, they will be ignored.- Kea- It's worth repeating: think of the data flow. Then work to simplify it. Derive as much state as possible via selectors, update the source via cascading actions, and avoid complex loops where a value triggers a subscription which calls an action which changes the value which triggers the subscription, ...