Fix templates merging in debug mode in macros (#2828)

* Fix templates merging in debug mode in macros

* Fix clippy

* Fix web-sys scroll to deprecated warning
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-08-13 20:18:54 +00:00
1 parent cab573eefd
commit 959ab67624
5 files changed
+259 -204

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ pub fn apply_changes(dom: &mut VirtualDom, msg: &HotReloadMsg) {
let id = &template.location;
let value = template.template.clone();
if let Some(mut signal) = ctx.get_signal_with_key(id) {
signal.set(value);
signal.set(Some(value));
}
}
});