[CP Staging] Revert #90918 "fix: crash when searching results on participants step"#91373
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@mkhutornyi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b9c42d935b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| const onListEndReached = useDebounce(() => { | ||
| setMaxResults((previous) => previous + maxResultsPerPage); |
There was a problem hiding this comment.
Guard pagination when no additional options remain
onListEndReached now increments maxResults unconditionally, so reaching the end of a short list (where baseOptions already contains fewer than maxResults entries) still increases the page size. Because maxResults is never reset in this hook, repeated end-reached events can permanently inflate the limit and force later renders/searches to process much larger option sets than needed, which regresses selector performance on large-contact accounts.
Useful? React with 👍 / 👎.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 @MariaHCD has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.79-2 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. It's a straight revert of #90918, affecting only the internal No help site changes are required. |
|
@francoisl CP is passed by QA team, comment |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.79-4 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.3.80-0 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. It's a straight revert of #90918, simplifying the No help site changes are required. The change is entirely in internal React hook code ( |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.81-2 🚀
|
Holding for discussion #90918 (comment)
Explanation of Change
Straight revert of #90918 to fix a deploy blocker
Fixed Issues
$ #91366
Tests
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
MacOS: Chrome / Safari
The only test account I have with enough emails are real emails, so I'm not going to post them here