This message was deleted.
# android
s
This message was deleted.
f
this is code from 2 classes merged here into one code block?
"nothing will change", maybe connect your debugger and see what part of the code is not reached.
t
yes ,merged core code from a
ViewModel
and an
Activity
I just don't understand why I can't receive the content sent by
stateFlow
when I rotate the screen and then click the button.
f
I don't see anything strange here. Are you sure only one VM is created?
g
maybe try to remove the withContext(Dispatchers.Main) block, by default repeatOnLifecycle does its work on the main Dispatcher so I don't think it is needed