Skip to content

Root element panics at 'Can't find old handler' #198

Closed
@MartinKavik

Description

@MartinKavik

App panics immediately after start with panicked at 'Can't find old handler', src/libcore/option.rs:1036:5.

Minimal example:

#[macro_use]
extern crate seed;
use seed::prelude::*;

struct Model;
#[derive(Clone)]
struct Msg;
fn update(_: Msg, _: &mut Model, _: &mut impl Orders<Msg>) {}

fn view(_: &Model) -> impl View<Msg> {
    input![
        input_ev(Ev::Input, |_| Msg),
    ]
}

#[wasm_bindgen(start)]
pub fn render() {
    seed::App::build(|_, _| Init::new(Model), update, view)
        .finish()
        .run();
}

Once is input wrapped in div, the problem disappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions