Skip to main content

applyStateToTree

Callable

  • applyStateToTree(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.


    Parameters

    Returns { changedLayerIds: Set<string> }

    • changedLayerIds: Set<string>