diff --git a/leptos_server/src/resource.rs b/leptos_server/src/resource.rs index 71d8c4c19..167759d9e 100644 --- a/leptos_server/src/resource.rs +++ b/leptos_server/src/resource.rs @@ -26,6 +26,15 @@ pub struct ArcResource { data: ArcAsyncDerived, } +impl Clone for ArcResource { + fn clone(&self) -> Self { + Self { + ser: self.ser, + data: self.data.clone(), + } + } +} + impl Deref for ArcResource { type Target = ArcAsyncDerived; @@ -261,7 +270,7 @@ where } } -pub struct Resource +pub struct Resource where T: Send + Sync + 'static, {