, but facing issues when trying to set the same value again (for example when the user clicks the same button again, triggering same event).
Found this GitHub issue: https://github.com/Kotlin/kotlinx.coroutines/issues/2011
With @elizarov comment:
Copy code
We'll provide a different, more flexible primitive, for those rare cases when you don't want equality-based conflation. Stay tuned.
Do we have anything in the latest release to handle this scenario?
b
bezrukov
11/24/2020, 3:41 PM
SharedFlow is what you need
w
wbertan
11/24/2020, 3:47 PM
Amazing! Thanks @bezrukov
Do you predict any issue in setting up with: