onNavigationPath function

Module @runic-artifex/views in @runic-artifex/views 0.23.0

function onNavigationPath(listener: (change: NavigationPathChange) => void): () => void;

Calls listener with the window's route path: once the connection's hello reports it (with operation: "replace"), and after each change of the path region. Nothing is called for a window without a path region. Returns a function that stops listening.