mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
This commit is contained in:
parent
16917997cd
commit
1ff56f7bfd
1 changed files with 1 additions and 6 deletions
|
@ -94,12 +94,7 @@ pub(crate) fn property_helper(
|
||||||
create_render_effect(cx, move |old| {
|
create_render_effect(cx, move |old| {
|
||||||
let new = f();
|
let new = f();
|
||||||
let prop_name = wasm_bindgen::intern(&name);
|
let prop_name = wasm_bindgen::intern(&name);
|
||||||
if old.as_ref() != Some(&new)
|
property_expression(&el, prop_name, new.clone());
|
||||||
&& !(old.is_none()
|
|
||||||
&& new == wasm_bindgen::JsValue::UNDEFINED)
|
|
||||||
{
|
|
||||||
property_expression(&el, prop_name, new.clone())
|
|
||||||
}
|
|
||||||
new
|
new
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue