You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[PAY 23/02] [Performance] Make the Search Sidebar transition relatively smooth on slower devices #33596
When user navigates back from Search Sidebar there’s a noticeable delay and lag in closing the Search Sidebar. It mainly arises from withNavigationFocus HOC as it re-renders the BaseOptionSelector tree including OptionsList . Adding a memo to OptionsList doesn’t help as it’s parent gets re-rendered due to the withNavigationFocus HOC.
Also, we notice that due to isFocused state value in ActionItemView the ReportActionsList re-renders which also adds the overhead to the rendering cycle as it recreates the instances of recordTimeToMeasureItemLayout and loadOlderChats which are passed as props to ReportActionsList .
Solution
We can remove the withNavigationFocus HOC and add navigation listeners(focus, blur) in BaseOptionSelector and memoize OptionsListto not re-render when state is set in it’s parent. We can avoid recreating instances of recordTimeToMeasureItemLayout and loadOlderChats by wrapping them in useCallbacks and memoizing ReportActionsList .
changed the title [-][Performance] Make the Search Sidebar transition relatively smooth on slower devices [/-][+][PAY 23/02] [Performance] Make the Search Sidebar transition relatively smooth on slower devices [/+]on Feb 16, 2024
I would say that this was a complex change to test and the regressions were very hard to catch, I would still payout $500 to @situchan as this was challenging task taking lots of time. @hurali97 is from agency.
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@situchan] The PR that introduced the bug has been identified. Link to the PR:
[@situchan] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@situchan] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@situchan] Determine if we should create a regression test for this bug.
[@situchan] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@bfitzexpensify ] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Dec 26, 2023
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 26, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)mountiny commentedon Dec 26, 2023
@hurali97 Could you comment on this one?
mountiny commentedon Dec 28, 2023
Pr is close to be merged
melvin-bot commentedon Jan 1, 2024
@mountiny, @bfitzexpensify, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Jan 1, 2024
@mountiny, @bfitzexpensify, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
59 remaining items
melvin-bot commentedon Feb 9, 2024
@mountiny, @bfitzexpensify, @hurali97, @adelekennedy, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!
situchan commentedon Feb 9, 2024
still in review
bfitzexpensify commentedon Feb 16, 2024
Looks like the PR has hit prod - #34422.
I'm not sure the automation will work here, so updating the title manually.
As for payment - given the original PR was reverted due to regressions, it seems like the payout here would be $250.
Agree with that @mountiny?
[-][Performance] Make the Search Sidebar transition relatively smooth on slower devices [/-][+][PAY 23/02] [Performance] Make the Search Sidebar transition relatively smooth on slower devices [/+]mountiny commentedon Feb 16, 2024
I would say that this was a complex change to test and the regressions were very hard to catch, I would still payout $500 to @situchan as this was challenging task taking lots of time. @hurali97 is from agency.
bfitzexpensify commentedon Feb 19, 2024
Cool, sounds good to me. Offer sent @situchan
bfitzexpensify commentedon Feb 21, 2024
Payment due Friday
bfitzexpensify commentedon Feb 23, 2024
Payment complete - @situchan can you please complete the BZ checklist? Will copy it into a new comment
bfitzexpensify commentedon Feb 23, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
situchan commentedon Feb 23, 2024
This is performance improvement, not bug. BZ Checklist doesn't apply here.
muttmuure commentedon Mar 1, 2024
I think this can be closed
melvin-bot commentedon Mar 1, 2024
@mountiny, @bfitzexpensify, @hurali97, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick!