Cancelling all effects without explicitly providing id #2089
Unanswered
JustasPolis
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I was trying to come up with solution to cancel all effects without explicitly providing ids for all effects. Checked the internals of the library and saw that there is internal property
_cancellationCancellables
that stores keys of cancellable effects. By exposing it and traversing through it I managed to get all cancellable effects ids and cancel them from one action.Of course I could store effect ids myself in some kind of storage, but not sure if there is any downside to exposing it from library side.
Few questions:
@_spi(Internals)
properties or explicitly providing ids ?Thanks for amazing library!
Beta Was this translation helpful? Give feedback.
All reactions