I'm emitting a state and I want it to be cleared a...
# coroutines
k
I'm emitting a state and I want it to be cleared after receiving by an observer, I'm currently using
StateFlow
and after changing the state to desired object, I immediately set it back to null. This already sounding a bad practice so could someone guide me here with which Coroutine Flow/Channel should I use?
d
SharedFlow can probably help here