is there any reason that a mutable state flow wouldnt cause a composable function to reload its state when the value of the state flow has changed? I'm running into an issue where I'm changing the value of a mutable state flow but the composable function that collects it as state is not receiving the update or doing a rerender
a
Albert Chang
03/15/2021, 4:14 AM
This is usually because you are using the same instance of a mutable object (such as
MutableList
,
Calendar
, etc).
StateFlow
doesn't emit the value if you update it with the same instance.