appcues / appcues-android-sdk

The Appcues Android SDK
https://www.appcues.com/mobile
MIT License
10 stars 3 forks source link

Fix issue with duplicate state updates in shared flow #529

Closed iujames closed 1 year ago

iujames commented 1 year ago

Item found while testing updates in #528

distinctUntilChanged is enabled by default on StateFlow, but not on the SharedFlow used here - but we want that behavior here as well, since the state could be emitted multiple times with the same value, during error transitions (i.e. ExperienceAlreadyActive)