chore: fix unused variable warning in property now that it's not memoized (#810)

This commit is contained in:
Greg Johnston 2023-04-05 13:20:16 -04:00 committed by GitHub
parent 8b57ba7aa8
commit fa1013f7c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ pub(crate) fn property_helper(
match value {
Property::Fn(cx, f) => {
let el = el.clone();
create_render_effect(cx, move |old| {
create_render_effect(cx, move |_| {
let new = f();
let prop_name = wasm_bindgen::intern(&name);
property_expression(&el, prop_name, new.clone());