Describe the problem
I have some use cases where it would be useful for a plugin to be able to add a navigation handler for it own usage.
Describe the solution you'd like
I would like a with_navigation_handler function or similar added to the Plugin interface.
Alternatives considered
Something similar could probably be achieved by adding an event hook into wry that created a WindowEvent when navigation started and then using the pre-existing on_event method.
The on page load kind of works, but it only triggers after a page starts loading instead of preventing navigation.
Additional context
No response
Describe the problem
I have some use cases where it would be useful for a plugin to be able to add a navigation handler for it own usage.
Describe the solution you'd like
I would like a
with_navigation_handlerfunction or similar added to thePlugininterface.Alternatives considered
Something similar could probably be achieved by adding an event hook into wry that created a
WindowEventwhen navigation started and then using the pre-existingon_eventmethod.The on page load kind of works, but it only triggers after a page starts loading instead of preventing navigation.
Additional context
No response