编写 kea 逻辑
io.github.PostHog/posthog/writing-kea-logics
编写或评审 PostHog kea 逻辑文件(*Logic.ts/*Logic.tsx)的指南。适用于新建 logic、添加 actions/reducers/selectors/listeners/loaders/forms/router 绑定、在 reducer/selector/cache 之间取舍、在 listeners 与 kea-subscriptions 之间抉择、用 useValues/useActions/BindLogic 衔接 React,或熟悉 kea 约定。上游 API 请查 keajs.org;本技能记录 PostHog 特有的约定与惯用法。