Function root_router

Source
pub fn root_router() -> Option<RouterContext>
Expand description

Try to get the router that was created closest to the root of the virtual dom. This may be called outside of the router.

This will return None if there is no router present or the router has not been created yet.