[][src]Function seed::routing::setup_hashchange_listener

pub fn setup_hashchange_listener<Ms>(
    update: impl Fn(Ms) + 'static,
    updated_listener: impl Fn(Closure<dyn FnMut(Event)>) + 'static,
    routes: fn(_: Url) -> Option<Ms>
) where
    Ms: 'static, 

Add a listener that handles routing when the url hash is changed.