MCPcopy
hub / github.com/PostHog/posthog / getAppContext

Function getAppContext

frontend/src/lib/utils/getAppContext.ts:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9export function getAppContext(): AppContext | undefined {
10 return window.POSTHOG_APP_CONTEXT || undefined
11}
12
13export function getDefaultEventName(): string {
14 return getAppContext()?.default_event_name || PathType.PageView

Callers 13

appContextLogic.tsFile · 0.90
teamLogic.tsxFile · 0.90
userLogic.tsFile · 0.90
preflightLogic.tsxFile · 0.90
isUserLoggedInFunction · 0.90
LemonCalendarFunction · 0.90
getCurrentTeamIdFunction · 0.90
getCurrentOrganizationIdFunction · 0.90
getPersistedFeatureFlagsFunction · 0.90
spyOnFeatureFlagsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…