diff --git a/leptos/src/children.rs b/leptos/src/children.rs index 5f32e6fb92..956cc74645 100644 --- a/leptos/src/children.rs +++ b/leptos/src/children.rs @@ -285,6 +285,13 @@ impl Debug for TypedChildrenFn { } } +impl Clone for TypedChildrenFn { + // Manual implementation to avoid the `T: Clone` bound. + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} + impl TypedChildrenFn { /// Extracts the inner `children` function. pub fn into_inner(self) -> Arc View + Send + Sync> {