Skip to main content

Function: applyStatusUpdateSnapshot()

applyStatusUpdateSnapshot(sites: Site[], statusUpdate: StatusUpdateSnapshotPayload): Site[]

Defined in: src/stores/sites/utils/statusUpdateSnapshot.ts:63

Apply a status update snapshot to the provided site collection.

Parametersโ€‹

sitesโ€‹

Site[]

Current site collection from the store.

statusUpdateโ€‹

StatusUpdateSnapshotPayload

Snapshot emitted from manual check operations.

Returnsโ€‹

Site[]

Updated site collection reflecting the provided status update.

Remarksโ€‹

Converts a StatusUpdate containing full monitor and site snapshots into the enriched monitor status change structure consumed by the orchestrated status update handler. This enables optimistic UI updates when manual checks return immediately from IPC invocations.