fix: use_state
This commit is contained in:
1 parent
0d8e9f5ed4
commit
c092bd43ed
1 file changed
+2
@@ -61,6 +61,8 @@ pub fn use_state<'a, T: 'static>(
|
||||
}
|
||||
});
|
||||
|
||||
hook.current_val = hook.slot.borrow().clone();
|
||||
|
||||
(hook.current_val.as_ref(), hook)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user