Replies: 2 comments 1 reply
-
You can add an onDispose callback for the signal. final instance = signal(0);
instance.onDispose(() => print('disposed!'));
instance.dispose(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Apologies, I can see that my question wasn't clear. I'm looking to observe dispose() on all signals, without modifying the usage of every signal (similar to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see that
SignalsObserver
exists, but it doesn't include a method for handling signal disposal.Is it possible through other means? (or possible add to
SignalsObserver
?)Beta Was this translation helpful? Give feedback.
All reactions