feat: more suspended nodes!

This commit is contained in:
Jonathan Kelley committed 2021-07-14 23:18:02 -04:00
1 parent c52af221f7
commit de9f61bcf4
20 files changed
+644 -148

No files matched your search

+1 -1
View File
@@ -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)),