mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
fix: IntoView impl for Rc<dyn Fn() -> impl IntoView> (#1698)
This commit is contained in:
parent
8245d77738
commit
8d690ac146
1 changed files with 11 additions and 0 deletions
|
@ -137,6 +137,17 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<N> IntoView for std::rc::Rc<dyn Fn() -> N>
|
||||
where
|
||||
N: IntoView + 'static,
|
||||
{
|
||||
#[inline]
|
||||
fn into_view(self) -> View {
|
||||
// reuse impl for `Fn() -> impl IntoView`
|
||||
IntoView::into_view(move || self())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "nightly"))]
|
||||
impl<T> IntoView for ReadSignal<T>
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue