Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Set initialDataReceived on first websocket payload

rcourtmanf4794b199343
diff --git a/frontend-modern/src/stores/websocket.ts b/frontend-modern/src/stores/websocket.ts
index b870a558e2..aca0d2cd83 100644
--- a/frontend-modern/src/stores/websocket.ts
+++ b/frontend-modern/src/stores/websocket.ts
@@ -326,8 +326,8 @@ export function createWebSocketStore(url: string) {
) {
// Update state properties individually to ensure reactivity
if (message.data) {
- // Mark that we've received initial data
- if (message.type === WEBSOCKET.MESSAGE_TYPES.INITIAL_STATE) {
+ // Mark that we've received usable data (initial payload or raw update)
+ if (!initialDataReceived()) {
setInitialDataReceived(true);
}