-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(perf) Debounce search in OptionList #32962
(perf) Debounce search in OptionList #32962
Conversation
src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js
Outdated
Show resolved
Hide resolved
aa1c455
to
d6beb16
Compare
thanks @s77rt , I applied all the changes you mentioned |
When making multiple requests to Screen.Recording.2023-12-15.at.7.49.46.PM.mov |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
This #32962 (comment) should probably be handled separately |
Addressed the comment. I agree the comment looks like something that should be tackled separately 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment
!_.isEqual(prevProps.option.icons, nextProps.option.icons) && | ||
_.isEqual(prevProps.option.icons, nextProps.option.icons) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this change about? This must have been causing some bug if it was incorrect 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was breaking the memoisation of the OptionRow - it was rerendering the whole OptionRow when typing in the SearchInput, but in fact the icons array and its values remained the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks @TMisiukiewicz and @s77rt really appreciate you digging into these |
✋ 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/mountiny in version: 1.4.14-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.14-0 🚀
|
Not totally sure but I think this PR might have caused this regression #33282 |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.14-6 🚀
|
Details
Adding debounce for all
OptionList
component occurencies, to reduce expensive calculations on each keystroke.Fixed Issues
$ #32806
PROPOSAL:
Tests
[email protected]
Offline tests
n/a
QA Steps
[email protected]
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
ANDROID.mov
Android: mWeb Chrome
ANDROID-WEB.mov
iOS: Native
IOS.mov
iOS: mWeb Safari
IOS-WEB.mov
MacOS: Chrome / Safari
WEB.mov
MacOS: Desktop
DESKTOP.mov