fix: Make storage calls async and await the init task#727
Merged
roryabraham merged 9 commits intoExpensify:mainfrom Feb 13, 2026
Merged
fix: Make storage calls async and await the init task#727roryabraham merged 9 commits intoExpensify:mainfrom
roryabraham merged 9 commits intoExpensify:mainfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@roryabraham @sosek108 @tgolen
Details
This PR makes Onyx storage calls async so we can await the initialization task before executing them.
Related Issues
$ Expensify/App#81835
Automated Tests
Manual Tests
(With EApp)
2. In dev, put a new
Log.infocall really early on, before Onyx initializes (example)3. Log into the app
4. Navigate to Workspaces -> New -> New Workspace (
/workspaces/confirmation)5. Refresh the page
6. Observe the Currency field reporting
undefinedand navigating into it results in a missing list of currencies to choose from7. Remove the newly added
Log.infocall8. Go back to the app, refresh it
9. Observe currency is displayed correctly and the list (while navigating into the pick list) is displayed correctly
Author Checklist
### Related Issuessection aboveTestssectiontoggleReportand notonIconClick)myBool && <MyComponent />.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Avataris modified, I verified thatAvataris working as expected in all cases)mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
OG bug (

undefined)Android: Native
android.mp4
Android: mWeb Chrome
android-web.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
web.mp4