[POC] Remove waitForCollectionCallback from Onyx#93436
Conversation
…onyx-store-poc-baseline
|
|
(cherry picked from commit 535279b)
The waitForCollectionCallback connect option no longer exists in Onyx store-based PR 1, so remove all usages across the app. Collection-root subscriptions now always deliver snapshots, so the now-properly-typed snapshot callbacks no longer need the `as unknown as Record<...>` casts; rebuild the rawID-keyed views with a plain `.replace()`. Also fix a couple of resulting test type errors: type the collected collection vars in ReportTest as non-undefined, and cast the resolved value in the getOnyxValue single-key helper.
04ce43b to
6008df2
Compare
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
…onyx-store-poc-baseline
…e-pr-1 # Conflicts: # package-lock.json # package.json # src/libs/actions/SplitExpenses.ts
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
…e-pr-1 # Conflicts: # src/libs/actions/Transaction.ts
Explanation of Change
Fixed Issues
$ #94331
PROPOSAL:
Tests
We are basically just removing
waitForCollectionCallbackusage here, functionality should stay the same so we can test only the tab sync issues that are present onmainand are being fixed here. Tests are web-only.Offline tests
N/A
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-06-26.at.14.09.06.mov
Screen.Recording.2026-06-26.at.14.12.04.mov