Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

How to load room data first after reopening the app

Open
#136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin
Domain
database, mobile

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.

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.

Dominant language
Kotlin
Stars
509
Forks
268
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/codelab-android-paging

All issues in android/codelab-android-paging

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.