Hi there. I have this use case that implements abs...
# rx
u
Hi there. I have this use case that implements abstract class
FlowableUseCase
. By subscribing (inside a
ViewModel
which is observed by
SearchFragment
), I expect to receive search suggests from database (
Room
), but when I subscribe this use case for the first time, I do receive
onStart()
callback from
Flowable
, but it doesn't emit any items (subscriber's
onNext()
is never called, though while debugging I see that database actually emits query results). When I return to
SearchFragment
for the second time, results are received,
onNext()
is called as expected. What could explain this weird behavior? Thank you.