FunctionsapplyStateToTreeapplyStateToTree CallableapplyStateToTree(root: ChaynsHistoryLayer, raw: unknown): { changedLayerIds: Set<string> }Applies the raw window.history.state payload onto the layer tree. Returns the set of layer ids whose segments OR ownState changed.Parametersroot: ChaynsHistoryLayerraw: unknownReturns { changedLayerIds: Set<string> }changedLayerIds: Set<string>
Applies the raw
window.history.statepayload onto the layer tree. Returns the set of layer ids whose segments OR ownState changed.