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

Function getStoreInstance

src/browser/stores/WorkspaceStore.ts:4446–4451  ·  view source on GitHub ↗

* Get or create the singleton WorkspaceStore instance.

()

Source from the content-addressed store, hash-verified

4444 * Get or create the singleton WorkspaceStore instance.
4445 */
4446function getStoreInstance(): WorkspaceStore {
4447 storeInstance ??= new WorkspaceStore(() => {
4448 // Model tracking callback - can hook into other systems if needed
4449 });
4450 return storeInstance;
4451}
4452
4453/**
4454 * Direct access to the singleton store instance.

Callers 15

WorkspaceStore.tsFile · 0.70
useWorkspaceStateFunction · 0.70
useWorkspaceShellStatusFunction · 0.70
useWorkspaceStoreRawFunction · 0.70
useWorkspaceRecencyFunction · 0.70
useActiveGoalCountFunction · 0.70
useWorkspaceSidebarStateFunction · 0.70
useBashToolLiveOutputFunction · 0.70
useAdvisorToolLiveOutputFunction · 0.70
useAdvisorToolLivePhaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected