(
runtimeStatusStore:
| PassiveRuntimeDeps
| Pick<RuntimeStatusStore, "getStatus"> = getRuntimeStatusStore()
)
| 188 | constructor(runtimeStatusStore?: PassiveRuntimeDeps); |
| 189 | constructor(runtimeStatusStore?: Pick<RuntimeStatusStore, "getStatus">); |
| 190 | constructor( |
| 191 | runtimeStatusStore: |
| 192 | | PassiveRuntimeDeps |
| 193 | | Pick<RuntimeStatusStore, "getStatus"> = getRuntimeStatusStore() |
| 194 | ) { |
| 195 | this.runtimeStatusStore = { |
| 196 | getStatus: (workspaceId) => runtimeStatusStore.getStatus(workspaceId), |
| 197 | subscribeKey: |
| 198 | "subscribeKey" in runtimeStatusStore |
| 199 | ? (workspaceId, listener) => runtimeStatusStore.subscribeKey(workspaceId, listener) |
| 200 | : () => () => undefined, |
| 201 | }; |
| 202 | this.refreshController = new RefreshController({ |
| 203 | onRefresh: () => this.refreshAll(), |
| 204 | onRefreshError: (failure) => { |
| 205 | console.error("[PRStatusStore] refresh failed:", failure.errorMessage); |
| 206 | }, |
| 207 | debounceMs: 5000, |
| 208 | refreshOnFocus: true, |
| 209 | focusDebounceMs: 1000, |
| 210 | }); |
| 211 | } |
| 212 | |
| 213 | setClient(client: RouterClient<AppRouter> | null): void { |
| 214 | this.client = client; |
nothing calls this directly
no test coverage detected