codelab-android-paging icon indicating copy to clipboard operation
codelab-android-paging copied to clipboard

How to load room data first after reopening the app

Open nthieu90 opened this issue 3 years ago • 0 comments

After I saved the remote response from RemoteMediator to the room. The next time open the app how can I load data first while waiting for a remote response. Because we have the cache data already, but every time opens the app, it looks like we have an empty list while loading remote data. If I turn the network off and reopen the app, I will see cache data immediately.

nthieu90 avatar Dec 15 '20 14:12 nthieu90