wip: better desktop support
This commit is contained in:
1 parent
19df1bda10
commit
25a8411485
11 files changed
+519
-586
No files matched your search
@@ -126,7 +126,10 @@ impl<'a, T: 'static> UseState<'a, T> {
|
||||
|
||||
pub fn setter(&self) -> Rc<dyn Fn(T)> {
|
||||
let slot = self.inner.wip.clone();
|
||||
Rc::new(move |new| *slot.borrow_mut() = Some(new))
|
||||
Rc::new(move |new| {
|
||||
//
|
||||
*slot.borrow_mut() = Some(new);
|
||||
})
|
||||
}
|
||||
|
||||
pub fn for_async(&self) -> AsyncUseState<T> {
|
||||
|
||||
Reference in new issue
Block a user