You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an App where we are using MutableStateFlow to share data to the UI. Problem is that we need to update the view when the same value is emitted on the flow.
The text was updated successfully, but these errors were encountered:
Instead of a StateFlow use a SharedFlow with repeat 1. You will also have to update the Update Policy in your compose State, because compose State also don't Emit events on the same event.
Bottom line you should change your design into something that represents your state not depending on this state updates.
That would be better for performance too.
I have an App where we are using
MutableStateFlow
to share data to the UI. Problem is that we need to update the view when the same value is emitted on the flow.The text was updated successfully, but these errors were encountered: