feat(web-ui): pause dashboard polling, sockets, and chart updates when the tab is hidden

This commit is contained in:
2026-03-27 18:46:11 +00:00
parent 29d6076355
commit 6c4adf70c7
13 changed files with 367 additions and 292 deletions

View File

@@ -38,7 +38,7 @@ class AppRouter {
}
private setupStateSync(): void {
appstate.uiStatePart.state.subscribe((uiState) => {
appstate.uiStatePart.select().subscribe((uiState) => {
if (this.suppressStateUpdate) return;
const currentPath = window.location.pathname;