MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / useRoleTesting

Function useRoleTesting

apps/web/src/contexts/RoleTestingContext.tsx:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53export function useRoleTesting() {
54 const context = useContext(RoleTestingContext);
55 if (context === undefined) {
56 throw new Error('useRoleTesting must be used within a RoleTestingProvider');
57 }
58 return context;
59}
60
61/**
62 * Safe version of useRoleTesting that returns null/no-op values when outside the provider.

Callers 9

AdminOmniboxInnerFunction · 0.90
OrganizationDashboardFunction · 0.90
OrganizationTrialWrapperFunction · 0.90
BYOKContentFunction · 0.90
OrganizationSubscriptionFunction · 0.90
OrganizationAppSidebarFunction · 0.90
AuditLogsPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected