Say you have a fragment that’s observing a statefl...
# coroutines
v
Say you have a fragment that’s observing a stateflow in the viewmodel. How do you know what event triggered that change in state? Is the only way to know by setting breakpoints in the viewmodel everywhere where the stateflow gets updated?
w
Perhaps you could put a field watchpoint in the
MutableStateFlow#value
and look at the stacktrace?
I assume mean you want to debug the changes in the flow
v
Yes, to debug the changes
👍 1