Skip to content

Commit

Permalink
TypedChildrenFn impl Clone trait
Browse files Browse the repository at this point in the history
  • Loading branch information
redforks committed Dec 11, 2024
1 parent e1e90b8 commit 5a0a4f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions leptos/src/children.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ where

/// A typed equivalent to [`ChildrenFn`], which takes a generic but preserves type information to
/// allow the compiler to optimize the view more effectively.
#[derive(Clone)]
pub struct TypedChildrenFn<T>(Arc<dyn Fn() -> View<T> + Send + Sync>);

impl<T> Debug for TypedChildrenFn<T> {
Expand Down

0 comments on commit 5a0a4f6

Please sign in to comment.