: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
fix(scenes): mount teamLogic from sceneLogic (#97422)
posthog[bot]079e46926cad
diff --git a/frontend/src/scenes/sceneLogic.test.tsx b/frontend/src/scenes/sceneLogic.test.tsxindex 50c43524f9bf..04314aa15196 100644--- a/frontend/src/scenes/sceneLogic.test.tsx+++ b/frontend/src/scenes/sceneLogic.test.tsx@@ -64,6 +64,13 @@ describe('sceneLogic', () => {})})+ it('keeps teamLogic mounted after every other mount reference is released', () => {+ // openScene and activeSceneId read teamLogic.values directly. Without a mount reference of+ // its own, navigation throws as soon as nothing else holds teamLogic up.+ teamLogic.unmount()+ expect(teamLogic.isMounted()).toBe(true)+ })+it('changing URL runs openScene, loadScene and setScene', async () => {await expectLogic(logic).toDispatchActions(['openScene', 'loadScene', 'setScene']).toMatchValues({sceneId: Scene.DataManagement,diff --git a/frontend/src/scenes/sceneLogic.tsx b/frontend/src/scenes/sceneLogic.tsxindex d125fb477f2e..a8d7602e875b 100644--- a/frontend/src/scenes/sceneLogic.tsx+++ b/frontend/src/scenes/sceneLogic.tsx@@ -381,7 +381,7 @@ export const sceneLogic = kea<sceneLogicType>([path(['scenes', 'sceneLogic']),connect(() => ({- logic: [router, userLogic, preflightLogic],+ logic: [router, userLogic, preflightLogic, teamLogic],actions: [router, ['locationChanged'], inviteLogic, ['hideInviteModal']],values: [billingLogic, ['billing'], organizationLogic, ['organizationBeingDeleted']],})),