Closed boyswan closed 1 month ago
Thanks, false positive fixed in f96ce57 (unless I'm misinterpreting, Portal works correctly but logs a warning)
Great! I've just retested, and have noticed that whilst the warning is gone, it's actually rendering duplicate portal child elements.
#[island]
fn Inner() -> impl IntoView {
view! {
<Portal>
<span>Hello</span>
</Portal>
}
}
#[island]
fn Example() -> impl IntoView {
view! { <Inner/> }
}
<body>
<div>
<leptos-island data-component="Example">
<leptos-island data-component="Inner">
<!---->
</leptos-island>
</leptos-island>
<span>child a</span>
</div>
...script removed
<div><span>Hello</span></div>
<div><span>Hello</span></div>
</body>
Results in a console warning