mirror of
https://github.com/Zenithsiz/dynatos.git
synced 2026-02-03 18:13:04 +00:00
Added better panic message when calling Effect::deps_gatherer multiple times.
This commit is contained in:
parent
b2caabf5f3
commit
24844a58d7
@ -188,7 +188,11 @@ impl<F: ?Sized, W: ReactiveWorld> Effect<F, W> {
|
||||
W::EffectStack::push(self.downgrade());
|
||||
|
||||
// Lock the dependencies gatherer
|
||||
let gather_deps_lock = self.inner.gather_deps_lock.write();
|
||||
let gather_deps_lock = self
|
||||
.inner
|
||||
.gather_deps_lock
|
||||
.try_write()
|
||||
.expect("Cannot gather effect dependencies recursively");
|
||||
|
||||
// Clear the dependencies
|
||||
let mut deps = self.inner.dependencies.write();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user