Luca Nicoletti01/31/2023, 10:13 AM
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 Ravi02/01/2023, 4:32 PM
Luca Nicoletti02/02/2023, 12:01 PM
which stacks (so the snackbar is not dismissed before another one is sent) works
Benoît02/09/2023, 12:17 PM
Luca Nicoletti02/09/2023, 2:27 PM
Vishnu Ravi02/09/2023, 2:53 PM
Vishnu Ravi02/09/2023, 3:37 PM
Benoît02/13/2023, 3:54 PM
Vishnu Ravi02/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.