Is it possible to combine multiple listeners into one? #96
-
Something like this: _cancelDataModuleListener = cc.listen((use) {
use(votePersonalCachedCapsule);
use(voteOverallCachedCapsule);
forceUpdate();
}); |
Beta Was this translation helpful? Give feedback.
Answered by
GregoryConrad
Feb 3, 2024
Replies: 2 comments 2 replies
-
I suppose it won't work... but is there any workaround? |
Beta Was this translation helpful? Give feedback.
0 replies
-
What’s the problem there? The listener will get triggered when either of those capsules update. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
busslina
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What’s the problem there? The listener will get triggered when either of those capsules update.