mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
feat: impl IntoView
for &Fragment
(#655)
This commit is contained in:
parent
d291cdb968
commit
c782017578
1 changed files with 6 additions and 0 deletions
|
@ -451,6 +451,12 @@ impl<const N: usize> IntoView for [View; N] {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoView for &Fragment {
|
||||
fn into_view(self, cx: Scope) -> View {
|
||||
self.to_owned().into_view(cx)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(target_arch = "wasm32", feature = "web"))]
|
||||
impl Mountable for View {
|
||||
fn get_mountable_node(&self) -> web_sys::Node {
|
||||
|
|
Loading…
Reference in a new issue