: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.
paths: - 'frontend/src//*Logic.ts' - 'frontend/src/**/Logic.tsx' - 'products//frontend//Logic.ts' - 'products//frontend/**/*Logic.tsx'
If this kea logic adds setInterval, setTimeout, addEventListener, or any other
resource that needs cleanup, invoke the /using-kea-disposables skill before making
changes. Prefer cache.disposables.add(() => ..., 'key') over cache.foo = setInterval(...)
plus beforeUnmount cleanup — the plugin handles teardown and auto-pauses on hidden tabs.
add/dispose are no-ops after unmount, so call them without ?. or a null check. When an
async continuation must also skip its own work after an unmount, branch on
cache.disposables.isDisposed.