: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
import { MakeLogicType, actions, kea, path, reducers } from 'kea'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface membersLogicValues {
members: unknown[]
}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface membersLogicActions {
ensureAllMembersLoaded: () => {
value: true
}
}
export type membersLogicType = MakeLogicType<membersLogicValues, membersLogicActions>
// Toolbar shim — prevents the real membersLogic from auto-mounting and making API requests to the wrong host
export const membersLogic = kea<membersLogicType>([
path(['toolbar', 'shims', 'membersLogic']),
actions({
ensureAllMembersLoaded: true,
}),
reducers({
members: [[] as unknown[], {}],
}),
])