MCPcopy Index your code
hub / github.com/coder/mux / useWorkspaceShellStatus

Function useWorkspaceShellStatus

src/browser/stores/WorkspaceStore.ts:4520–4527  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

4518 * WorkspaceState would cascade every transcript delta through the shell and sidebars.
4519 */
4520export function useWorkspaceShellStatus(workspaceId: string): WorkspaceShellStatus {
4521 const store = getStoreInstance();
4522
4523 return useSyncExternalStore(
4524 (listener) => store.subscribeKey(workspaceId, listener),
4525 () => store.getWorkspaceShellStatus(workspaceId)
4526 );
4527}
4528
4529/**
4530 * Hook to access the raw store for imperative operations.

Callers 1

WorkspaceShellFunction · 0.90

Calls 3

subscribeKeyMethod · 0.80
getStoreInstanceFunction · 0.70

Tested by

no test coverage detected