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

Method setClient

src/browser/stores/GitStatusStore.ts:132–142  ·  view source on GitHub ↗
(client: RouterClient<AppRouter> | null)

Source from the content-addressed store, hash-verified

130 }
131
132 setClient(client: RouterClient<AppRouter> | null): void {
133 this.client = client;
134
135 if (!client) {
136 return;
137 }
138
139 if (this.workspaceMetadata.size > 0) {
140 this.refreshController.requestImmediate();
141 }
142 }
143
144 /**
145 * Subscribe to git status changes (any workspace).

Callers 1

createStoreFunction · 0.95

Calls 1

requestImmediateMethod · 0.80

Tested by 1

createStoreFunction · 0.76