UBERF-6267: Fix few platform troubles (#5142)

This commit is contained in:
Andrey Sobolev
2024-04-02 19:40:52 +07:00
committed by GitHub
parent c8a58d5428
commit 7a7ea1e92b
7 changed files with 56 additions and 39 deletions
+3 -3
View File
@@ -179,16 +179,16 @@ export async function setClient (_client: MeasureClient): Promise<void> {
void uiClient.doNotify(...tx)
}
if (needRefresh || globalQueries.length > 0) {
await refreshClient()
await refreshClient(true)
}
}
/**
* @public
*/
export async function refreshClient (): Promise<void> {
export async function refreshClient (clean: boolean): Promise<void> {
if (!(liveQuery?.isClosed() ?? true)) {
await liveQuery?.refreshConnect()
await liveQuery?.refreshConnect(clean)
for (const q of globalQueries) {
q.refreshClient()
}