feat(web): using None instead of Element (#3012)

Can mount the Dioxus component into every node.
As `Element` and `ShadowRoot` are `Node` we can
now mount a dioxus component into a shadow root.
This commit is contained in:
igor authored and GitHub committed 2024-09-30 07:02:06 -05:00
1 parent 9f22e9043c
commit d3e1ba415f
3 files changed
+17 -7

No files matched your search

+1 -1
View File
@@ -218,7 +218,7 @@ impl WebsysDom {
// Rehydrate the root scope that was rendered on the server. We will likely run into suspense boundaries.
// Any suspense boundaries we run into are stored for hydration later.
self.start_hydration_at_scope(vdom.base_scope(), vdom, vec![self.root.clone().into()])?;
self.start_hydration_at_scope(vdom.base_scope(), vdom, vec![self.root.clone()])?;
Ok(rx)
}