fix: versioned resources never decrement Suspense (closes #1640) (#1641)

This commit is contained in:
Greg Johnston 2023-09-03 20:21:16 -04:00 committed by GitHub
parent 3b5e2d86fb
commit 7be65a37c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1166,14 +1166,12 @@ where
resolved.set(true);
set_value.try_update(|n| *n = Some(res));
set_loading.try_update(|n| *n = false);
}
for suspense_context in
suspense_contexts.borrow().iter()
{
suspense_context.decrement(
serializable != ResourceSerialization::Local,
);
}
for suspense_context in suspense_contexts.borrow().iter() {
suspense_context.decrement(
serializable != ResourceSerialization::Local,
);
}
}
})