mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Make UseFutureHandle Clone (#3529)
* Make UseFutureHandle Clone * Make UseFutureHandle Clone
This commit is contained in:
parent
e99492e1de
commit
197e2d51bc
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user