Skip to main content

Function: writeStateToUrl()

writeStateToUrl(state, options): void

Defined in: src/serialization/urlState.ts:173

Write a state to location.hash. No-op when there is no DOM.

Parameters​

state​

unknown

Any JSON-serializable value.

options​

WriteStateOptions = {}

replace to overwrite the current history entry.

Returns​

void