oday
09/01/2022, 1:15 PMNick Allen
09/01/2022, 7:28 PMcombine
. If your Rx was emitting an item whenever your activity resumes/starts, I'm guessing that you were re-subscribing each time? You need to do the same with Flow
. ViewModelScope lasts accross multiple Activities so it's not going to re-subscribe. You could look at something like repeatOnLifecycle
or flowWithLifecycle
.oday
09/02/2022, 7:08 AModay
09/02/2022, 7:08 AM