Skip to main content

projectToState

Callable

  • projectToState(root: ChaynsHistoryLayer, existing?: Record<string, unknown>): Record<string, unknown>

  • Returns the value to store in window.history.state, merging with any pre-existing foreign keys so we never overwrite other consumers' state.


    Parameters

    Returns Record<string, unknown>