Function: applySavedSiteToStore()
applySavedSiteToStore(
savedSite:Site,deps:SiteOperationsDependencies):void
Defined in: src/stores/sites/utils/operationHelpers.ts:240
Applies a backend-sourced site snapshot to the local store state.
Parametersโ
savedSiteโ
Site instance returned by the backend after a mutation.
depsโ
Site operation dependencies used to read and write store state.
Returnsโ
void
Remarksโ
Validates identifier uniqueness before committing changes so mutations can never introduce duplicate site entries. Any integrity breach surfaces via a DuplicateSiteIdentifierError to avoid masking backend regressions.