FirebaseExtended / make-it-so-android

Apache License 2.0
214 stars 58 forks source link

Multiple snackbar messages shown #20

Closed mtali closed 11 months ago

mtali commented 1 year ago

An old Snackbar message gets displayed when launching the app from the recent list

Steps to reproduce

BobbeYo1983 commented 1 year ago

Yes, there is, what to do?

BobbeYo1983 commented 1 year ago

Разобрался. Нужно использовать SharedFlow. https://blog.devgenius.io/snackbars-in-jetpack-compose-d1b553224dca

marinacoelho commented 11 months ago

Hi @mtali and @BobbeYo1983, thanks for reporting this issue! We investigated the problem and found out that we were not clearing the SnackbarManager state after showing a message in the UI, causing the last message to stay there and be shown again every time there was a lifecycle event. We just merged the code that fixes this issue.

thatfiredev commented 11 months ago

For future reference: fixed in #44