You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: