android / android/codelab-android-paging

How to load room data first after reopening the app

Open
#136 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.