Skip to content

Seed app taking over some navigation on page #473

Closed
@SHDavies

Description

@SHDavies

I may not be using the seed API correctly, but I am experiencing a bug while including a seed app in an existing page. When clicking most of the links on the existing page, the address in my browser's address bar is updated, but the new URL isn't actually navigated to. Curiously, a few links on the page still work, and I haven't been able to discern what sets them apart. My app does not handle any routing, and I have built the app with this code:

fn after_mount(_url: Url, orders: &mut impl Orders<Msg>) -> AfterMount<Model> {
    ...
    AfterMount::new(model).url_handling(UrlHandling::None)
}

#[wasm_bindgen(start)]
pub fn render() {
    App::builder(update, view)
        .after_mount(after_mount)
        .routes(|_| None)
        .build_and_start();
}

I'm on seed v0.6 if that makes any difference. I'm hoping I'm just missing something in the docs, but at this point I'm stumped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions