android / android/codelab-android-paging
How to load room data first after reopening the app
- Dominant language
- Kotlin
- Stars
- 509
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Research direction
Start by tracing the RemoteMediator and Room data flow when the Android app reopens, comparing online and offline behavior. Confirm why the cached list is not shown while the remote response is pending; done means cached data appears immediately on startup and remains usable while refresh continues.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- database, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100