perf(tui): reduce cold-start latency
This commit is contained in:
1 parent
369a3443eb
commit
df14259717
19 files changed
+669
-160
No files matched your search
@@ -112,6 +112,14 @@ export class RuntimeControls {
|
||||
void this.load().catch(() => {})
|
||||
}
|
||||
|
||||
useApiConnection(apiUrl: string, apiToken: string): void {
|
||||
this.options.apiUrl = apiUrl
|
||||
this.options.apiToken = apiToken
|
||||
this.controlsLoaded = false
|
||||
this.controlsLoadedAt = 0
|
||||
this.preload()
|
||||
}
|
||||
|
||||
updateWorkspaceScope(scope: WorkspaceScopePayload): void {
|
||||
this.scope = scope
|
||||
this.render()
|
||||
|
||||
Reference in new issue
Block a user