RxJava/RxAndroid : Load from cache before api call using Observable.concat()
Mert Şimşek
2289

Sorry but I’m ever more noob with RX, and not sure what you did here:

  1. To me it seems you concat data from DB and Internet streams. Is this true? If so, where’s the part that differentiate between what was already stored from previous sessions, and the new one? Can’t there be duplicates this way?
  2. What do you mean by “We don’t want empty list.” ? What should it do with an empty list? If there are no results, there are no results…
  3. Where’s the part that actually uses the result data and put it on the UI ? And the part that shows temporary UI while it loads, and the part that uses memory cache to skip the loading phase, as the data is already available?
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.