MCPcopy Create free account
hub / github.com/block/buzz / useWorkspaces

Function useWorkspaces

desktop/src/features/workspaces/useWorkspaces.tsx:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54export function useWorkspaces(): UseWorkspacesReturn {
55 const ctx = useContext(WorkspacesContext);
56 if (!ctx) {
57 throw new Error("useWorkspaces must be used within a WorkspacesProvider");
58 }
59 return ctx;
60}
61
62function useWorkspacesInternal(): UseWorkspacesReturn {
63 const [workspaces, setWorkspacesState] =

Callers 10

useAppOnboardingStateFunction · 0.90
useProfileQueryFunction · 0.90
useSelfProfileCacheFunction · 0.90
useUpdateProfileMutationFunction · 0.90
useChannelsQueryFunction · 0.90
ProjectsViewFunction · 0.90
ProjectDetailScreenFunction · 0.90
AppFunction · 0.90
AppShellFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected