wip: fill out the snippets
This commit is contained in:
1 parent
4a72b3140b
commit
6051b0ec86
14 files changed
+185
-66
No files matched your search
@@ -106,7 +106,7 @@ impl<'a, T: 'static> UseState<'a, T> {
|
||||
*self.inner.wip.borrow_mut() = Some(new_val);
|
||||
}
|
||||
|
||||
pub fn get(&self) -> &T {
|
||||
pub fn get(&self) -> &'a T {
|
||||
&self.inner.current_val
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user