Skip to content

Question about handling Toast and Snackbar in Circuit: Presenter vs UI #1876

Answered by easyhooon
easyhooon asked this question in Q&A
Discussion options

You must be logged in to vote

https://slackhq.github.io/circuit/states-and-events/

My question was actually about How to handle one-time events in Slack Circuit, generalizing from a specific case. Based on the official documentation I shared, it seems that treating events as part of the state is Circuit's philosophy. Therefore, I'll understand that handling events through a separate state like SideEffect, as I suggested, is the appropriate approach.

I think this approach of not introducing separate channels or sharedflows aligns with Manuel Vivo's article's arguments as well.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by easyhooon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant