Skip to main content

Function: applyStatusUpdateSnapshot()

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

Defined in: src/stores/sites/utils/statusUpdateHandler.ts:144

Apply a status update snapshot to the provided site collection.

Parametersโ€‹

sitesโ€‹

Site[]

Current site collection from the store.

statusUpdateโ€‹

StatusUpdate

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.