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

+2 -2
View File
@@ -392,7 +392,7 @@ mod hooks {
) -> &'a Rc<dyn Fn(T)> {
let api = use_recoil_api(cx);
cx.use_hook(
move || {
move |_| {
let api = api.clone();
let raw_id = writable.static_id();
Rc::new(move |new_val| {
@@ -423,7 +423,7 @@ mod hooks {
let api = use_recoil_api(cx);
cx.use_hook(
move || {
move |_| {
let mut api = api.as_ref().borrow_mut();
let update = cx.schedule_update();