MCPcopy Index your code
hub / github.com/bytebase/bytebase / useWorkspace

Function useWorkspace

frontend/src/react/hooks/useAppState.ts:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45export function useWorkspace() {
46 const workspace = useAppStore((state) => state.workspace);
47 const loadWorkspace = useAppStore((state) => state.loadWorkspace);
48 useEffect(() => {
49 void loadWorkspace();
50 }, [loadWorkspace]);
51 return workspace;
52}
53
54export function useWorkspaceList() {
55 const workspaceList = useAppStore((state) => state.workspaceList);

Callers 9

BytebaseLogoFunction · 0.90
ProjectSidebarFunction · 0.90
DashboardSidebarFunction · 0.90
WorkspaceSegmentFunction · 0.90
ProfileMenuTriggerFunction · 0.90
OAuth2ConsentPageFunction · 0.90
ProfileSetupPageFunction · 0.90
DangerZoneSectionFunction · 0.90

Calls 1

useAppStoreFunction · 0.50

Tested by

no test coverage detected