From fed849093887ffd2202a5f12faac1a5bf0a6581a Mon Sep 17 00:00:00 2001 From: Adam Steinberg <43798340+AdamSteinberg1@users.noreply.github.com> Date: Wed, 15 Nov 2023 18:34:42 -0500 Subject: [PATCH] Make UseFutureHandle Clone --- packages/yew/src/suspense/hooks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/yew/src/suspense/hooks.rs b/packages/yew/src/suspense/hooks.rs index b31a57663d6..b41d6c7aac3 100644 --- a/packages/yew/src/suspense/hooks.rs +++ b/packages/yew/src/suspense/hooks.rs @@ -11,6 +11,7 @@ use yew::suspense::{Suspension, SuspensionResult}; /// /// A [Suspension] is created from the passed future and the result of the future /// is the output of the suspension. +#[derive(Clone)] pub struct UseFutureHandle { inner: UseStateHandle>, }