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
[$250] Web- User avatar & animation do not load after switching from Inbox to Settings with animation #47041
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: v9.0.18-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Exp #46885 Email or phone of affected tester (no customers):applausetester+kh050806@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Go to staging.new.expensify.com
Go to Account settings.
Go to any page with animation in the header (Preferences/Security/Troubleshoot/About/Save the world).
Go to Inbox.
Switch back to Account settings.
Expected Result:
User avatar and the animation will load after switching from Inbox to Settings with animation.
Actual Result:
User avatar and the animation do not load after switching from Inbox to Settings with animation.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
changed the title [-]Web- User avatar & animation do not load after switching from Inbox to Settings with animation[/-][+][$250] Web- User avatar & animation do not load after switching from Inbox to Settings with animation[/+]on Aug 8, 2024
It seems that this bug is caused by unnecessary state updates, leading to a much more complicated issue than it initially appears. There's an infinite re-rendering loop occurring when navigating from Settings -> Inbox -> Settings.
The top-level component is continuously re-rendering, which could be the underlying cause of performance issues and the heating problem noted in issue #36645.
cI've been unable to pinpoint the exact cause of these unnecessary re-renders, but I suspect it mainly stems from react-native-onyx/withOnyx().
See : #47041 (comment)
BTW, @puneetlath, curious is it possible to increase the bounty for this issue? I feel it's a relatively tough one. 😄
After it was posted on the 8th, it took several attempts before a seemingly valid proposal emerged on the 18th, and then, after two weeks of extensive digging and discussion, we finally arrived at a relatively good RCA and solution. 😂
[@ntdiary] 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: N/A
[@ntdiary] Determine if we should create a regression test for this bug. Yes
[@ntdiary] 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. As below
[@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
The testing steps are simple, it's fine to create a regression test. :)
Regression Test steps
Go to staging.new.expensify.com
Go to Account settings.
Go to any page with animation in the header (Preferences/Security/Troubleshoot/About/Save the world).
Go to Inbox.
Switch back to Account settings.
Verify avatar and animation can be displayed normally.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to @puneetlath (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.IuliiaHerets commentedon Aug 8, 2024
We think that this bug might be related to #vip-vsb
IuliiaHerets commentedon Aug 8, 2024
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
melvin-bot commentedon Aug 8, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01721123276553a8a9
[-]Web- User avatar & animation do not load after switching from Inbox to Settings with animation[/-][+][$250] Web- User avatar & animation do not load after switching from Inbox to Settings with animation[/+]melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (
External)codewaseem commentedon Aug 9, 2024
It seems that this bug is caused by unnecessary state updates, leading to a much more complicated issue than it initially appears. There's an infinite re-rendering loop occurring when navigating from Settings -> Inbox -> Settings.
The top-level component is continuously re-rendering, which could be the underlying cause of performance issues and the heating problem noted in issue #36645.

cI've been unable to pinpoint the exact cause of these unnecessary re-renders, but I suspect it mainly stems fromreact-native-onyx/withOnyx().See : #47041 (comment)
kaushiktd commentedon Aug 12, 2024
@puneetlath after pull new code i don't reproduce this issue
screen-capture.webm
81 remaining items
mountiny commentedon Oct 7, 2024
I believe we just need to pay this one out from the latest convo
puneetlath commentedon Oct 7, 2024
Ok @ntdiary can you complete the checklist?
And @dominictb can you accept the upwork offer? https://www.upwork.com/nx/wm/offer/103887884
dominictb commentedon Oct 7, 2024
@puneetlath Curious what's your thought on this comment?
cc @ntdiary
ntdiary commentedon Oct 8, 2024
@puneetlath, are you referring to the BugZero checklist? It seems like it hasn't been posted recently due to melvin's failure. 😂
The testing steps are simple, it's fine to create a regression test. :)
Regression Test steps
puneetlath commentedon Oct 9, 2024
Regression test issue: https://github.com/Expensify/Expensify/issues/434734
@dominictb bump, can you accept the offer? https://www.upwork.com/nx/wm/offer/103887884. Please ping me here when you have.
Payment summary:
Thanks everyone!
dominictb commentedon Oct 9, 2024
@puneetlath Could you have a look at this comment?
Thanks!
puneetlath commentedon Oct 9, 2024
What do you think is fair $500?
dominictb commentedon Oct 9, 2024
@puneetlath Yes I agree that would be fair given the effort here
cc @ntdiary
ntdiary commentedon Oct 10, 2024
Completely agree. :)
puneetlath commentedon Oct 10, 2024
Ok sounds good. I reviewed the thread and it seems fair to me too. I've updated the payment summary.
@dominictb please accept the new offer and ping me here when you have: https://www.upwork.com/nx/wm/offer/104356817
dominictb commentedon Oct 10, 2024
@puneetlath I did, thanks 🙏
puneetlath commentedon Oct 10, 2024
Ok good to go. @ntdiary request on NewDot please. Thanks y'all!
JmillsExpensify commentedon Oct 11, 2024
$500 approved for @ntdiary