Skip to content

Bug Report - Pack page not loading on first launch. #5

@Satviky

Description

@Satviky

Bug Report: Pack Page Doesn't Load on First App Launch

Description:

When Chromogram is opened for the first time on a new device, the Select a Pack screen shows up empty (no packs listed). User has to close and reopen the app to see any packs.

Steps to Reproduce:

  1. Install Chromogram fresh on a new device. [or delete the app and re-install it]
  2. Launch the app.
  3. Go to the Pack selection screen.
  4. ❌ No packs shown.

Expected Behavior:

Default pack (e.g., General Pack) should appear immediately on first launch.

Notes:

  • Works fine after restart.
  • Might be a timing or race condition with:
    • create-user not finishing before get-packs
    • userId not set in AsyncStorage yet
    • useEffect on pack screen running before data is available

Important

Do comment down few more reason which can cause this.

Devices Tested:

  • Works on my personal device (cached state?)
  • Fails on other fresh installs

Possible Fix Ideas:

  • Delay pack fetch until userId is definitely available
  • Add loading screen/spinner until DB init is confirmed
  • Add retry logic for first load

Important

Please make us aware of few more fixes options. we don't want to miss out on anything.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions