Replies: 1 comment 6 replies
-
That sounds fishy. What exactly is this scenario? You most likely don't want to do that. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say that we have two providers:
providerA
andproviderB
. There are some scenarios where after disposing ofproviderB
, I wanted to callref.refresh(providerA)
. If I'm not mistaken, there is only one way to know when a provider was disposed, and it's on thecreate
function,onDispose
. The problem is that when I call theref.refresh
on the dispose method, that particularref
is already disposed of, meaning it'll throw an error.Thus, my question: how can I listen to some provider being disposed, from another reference?
Beta Was this translation helpful? Give feedback.
All reactions