Luca Nicoletti
01/31/2023, 10:13 AMsnackbars
and stacking them?
Showing multiple snackbars in sequence, perhaps with different layout/color/text on them, actionable buttons, etc (the more complex the examples are, the better)Vishnu Ravi
02/01/2023, 4:32 PMLuca Nicoletti
02/02/2023, 12:01 PMsideEffect
which stacks (so the snackbar is not dismissed before another one is sent) worksBenoît
02/09/2023, 12:17 PMLuca Nicoletti
02/09/2023, 2:27 PMVishnu Ravi
02/09/2023, 2:53 PMVishnu Ravi
02/09/2023, 3:37 PMBenoît
02/13/2023, 3:54 PMVishnu Ravi
02/13/2023, 7:31 PM...but it's just simpler not to use side effects and put everything in the stateThis is where I feel like something is off. For instance, in a large application with navigation that involves a backstack. Every time I receive a one-off event, after consuming these... and just before navigating to the next screen, I have to constantly remind myself to do the following 1. Clear my buffers (or mark the entries as consumed as and when it happens) 2. Mark any navigation events as consumed. 3. Reset other parameters that may repeat any strict one-off events.
I personally use them, but I understand why Google doesn't recommend themSame here. Appreciate that you shared your thoughts here 🙏 PS: Here's a relevant thread in the pinned message section, for those who are reading through this and trying to grab some context.