let end_view = html! { <label onclick=|event: MouseEvent| {
state.set_dimensions((12 as usize, 15 as usize));
}> }
pdom.update(end_view);
I get an error with this:
Diagnostics:
expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce`
required for the cast from `std::rc::Rc<std::cell::RefCell<{closure@project/src/lib.rs:56:36: 56:55}>>` to `std::rc::Rc<std::cell::RefCell<(dyn std::ops::FnMut(percy_dom::event::MouseEvent) + 'static)>>` [E0525]
I don't get an error if I simply log information. Is there state mutation examples in the docs and I just haven't been able to find it?
I get an error with this:
I don't get an error if I simply log information. Is there state mutation examples in the docs and I just haven't been able to find it?