Make TaskShareDestinationSelectorModal use new SelectionList#75822
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| const onListEndReached = useCallback(() => { | ||
| setMaxResults((previous) => previous + maxResultsPerPage); | ||
| }, [maxResultsPerPage]); | ||
| const onListEndReached = useDebounce( |
There was a problem hiding this comment.
I added useDebounce because FlashList triggers onEndReached way too often
It was firing over 50 times and making React think it was an infinite loop
There was a problem hiding this comment.
Debounce solved the infinite loop partly but the app still crashed on low-end devices.
We fixed it by only fetching new data when there is more data to fetch.
|
@dukenv0307 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] |
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-01.at.15.43.58.movAndroid: mWeb ChromeScreen.Recording.2025-12-01.at.15.39.42.moviOS: HybridAppScreen.Recording.2025-12-01.at.15.44.18.moviOS: mWeb SafariScreen.Recording.2025-12-01.at.15.39.24.movMacOS: Chrome / SafariScreen.Recording.2025-12-01.at.15.36.48.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.2.67-0 🚀
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.2.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.70-0 🚀
|
Explanation of Change
Fixed Issues
$ #72970
PROPOSAL:
Tests
Assign taskShareitemOffline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Screen.Recording.2025-11-28.at.12.02.59.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-11-28.at.11.59.52.mov
MacOS: Desktop