fix: dispose of watch effect normally

This commit is contained in:
Giovanni 2024-06-20 15:36:03 +01:00
parent 41a18a1218
commit 40ecc2bd78

View file

@ -1175,11 +1175,7 @@ impl RuntimeId {
);
(id, move || {
with_runtime(|runtime| {
runtime.nodes.borrow_mut().remove(id);
runtime.node_sources.borrow_mut().remove(id);
})
.expect(
with_runtime(|runtime| runtime.dispose_node(id)).expect(
"tried to stop a watch in a runtime that has been disposed",
);
})