Skip to content

trackkit / index / ResolvedNavigationSource

Interface: ResolvedNavigationSource ​

Defined in: types.ts:118

Internal

Internal resolved navigation source with all fields required.

Extends ​

Methods ​

subscribe() ​

subscribe(cb): () => void

Defined in: types.ts:110

Subscribe to normalised URL changes (pathname + search + hash).

The callback is invoked whenever the current logical page changes. Returns an unsubscribe function which should detach any listeners you register.

Parameters ​

cb ​

(url) => void

Returns ​

(): void

Returns ​

void

Inherited from ​

NavigationSource.subscribe

Released under the MIT License.