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:
3 files changed
+17
-7
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user