ubu
11/12/2018, 12:21 PMFlowableUseCase
. 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.