fix parents in placeholder diffing

This commit is contained in:
Evan Almloff committed 2023-08-31 14:17:26 -05:00
1 parent b0733958f2
commit c5ebdc9635
6 files changed
+50 -11

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ fn app(cx: Scope) -> Element {
};
// The VNode is a reference to the template with the dynamic parts of the rsx
::dioxus::core::VNode {
parent: None,
parent: Default::default(),
key: None,
// The static template this node will use. The template is stored in a Cell so it can be replaced with a new template when hot rsx reloading is enabled
template: std::cell::Cell::new(TEMPLATE),