mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 14:32:00 +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| {
|
||||
let new = f();
|
||||
let prop_name = wasm_bindgen::intern(&name);
|
||||
if old.as_ref() != Some(&new)
|
||||
&& !(old.is_none()
|
||||
&& new == wasm_bindgen::JsValue::UNDEFINED)
|
||||
{
|
||||
property_expression(&el, prop_name, new.clone())
|
||||
}
|
||||
property_expression(&el, prop_name, new.clone());
|
||||
new
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue