MCPcopy
hub / github.com/coder/mux / useProjectContext

Function useProjectContext

src/browser/contexts/ProjectContext.tsx:626–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

624}
625
626export function useProjectContext(): ProjectContext {
627 const context = useContext(ProjectContext);
628 if (!context) {
629 throw new Error("useProjectContext must be used within ProjectProvider");
630 }
631 return context;
632}

Callers 15

AppInnerFunction · 0.90
ProjectSidebarInnerFunction · 0.90
AppLoaderInnerFunction · 0.90
LeftSidebarStorySceneFunction · 0.90
WorkspaceMenuBarFunction · 0.90
OnboardingWizardSplashFunction · 0.90
useCreationWorkspaceFunction · 0.90
ChatInputInnerFunction · 0.90
CreationControlsFunction · 0.90
SecretsSectionFunction · 0.90
SecuritySectionFunction · 0.90
RuntimesSectionFunction · 0.90

Calls

no outgoing calls

Tested by 2

ContextCaptureFunction · 0.72
ContextCaptureFunction · 0.68