Variable: HandleHashChangeFeature

• Const HandleHashChangeFeature: FeatureClass<HandleHashChangeOptions, { onDOMHashChange: PropDefinition<"onDOMHashChange", (e: HashChangeEvent) => void> }>

This feature provide onDOMHashChange prop with payloads of type HashChangeEvent to intercept hashchange events, triggered when the hash fragment of the URL changes. An event will be triggered when the user clicks on anchors like this:

<a href="#subresource">Let's Jump to Subresource</a>

Or when JavaScript code imperatively changes the hash fragment of current location. The feature can be customized with HandleHashChangeOptions. See MDN—hashchange event.

For an example, read Handling hashchange events.