Make UseFutureHandle Clone (#3529)

* Make UseFutureHandle Clone

* Make UseFutureHandle Clone
This commit is contained in:
Adam Steinberg 2024-10-12 08:21:19 -04:00 committed by GitHub
parent e99492e1de
commit 197e2d51bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,14 @@ pub struct UseFutureHandle<O> {
inner: UseStateHandle<Option<O>>,
}
impl<O> Clone for UseFutureHandle<O> {
fn clone(&self) -> Self {
Self {
inner: self.inner.clone(),
}
}
}
impl<O> Deref for UseFutureHandle<O> {
type Target = O;