Skip to main content

Variable: getDashboardContext

const getDashboardContext: any

Defined in: src/server/dashboard/context.ts:25

Resolve the current admin, the domains they may access, and their role's hidden-widget set, ONCE per request. Wrapped in React cache() so the page and every widget that needs the context share a single read instead of re-fetching. Returns null when there is no authenticated admin (caller redirects).