feat: more suspended nodes!
This commit is contained in:
1 parent
c52af221f7
commit
de9f61bcf4
20 files changed
+644
-148
No files matched your search
@@ -54,7 +54,7 @@ pub fn use_state<'a, 'c, T: 'static, F: FnOnce() -> T, P>(
|
||||
initial_state_fn: F,
|
||||
) -> UseState<T> {
|
||||
cx.use_hook(
|
||||
move || UseStateInner {
|
||||
move |_| UseStateInner {
|
||||
current_val: initial_state_fn(),
|
||||
callback: cx.schedule_update(),
|
||||
wip: Rc::new(RefCell::new(None)),
|
||||
|
||||
Reference in new issue
Block a user