FunctionsinitRootChaynsHistoryLayerinitRootChaynsHistoryLayer CallableinitRootChaynsHistoryLayer(opts?: InitRootChaynsHistoryLayerOptions): InitRootChaynsHistoryLayerResultInitializes the root ChaynsHistoryLayer for the top window.Reads window.location.pathname and window.history.state.If __chaynsHistory is absent, replaces the current state with an empty tree.Attaches the global popstate listener.Returns the root ChaynsHistoryLayer instance. Call once at application startup (top window only).Parametersopts: InitRootChaynsHistoryLayerOptions = {}Returns InitRootChaynsHistoryLayerResult
Initializes the root ChaynsHistoryLayer for the top window.
window.location.pathnameandwindow.history.state.__chaynsHistoryis absent, replaces the current state with an empty tree.popstatelistener.Call once at application startup (top window only).