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
[HOLD for payment 2025-02-06] [$250] Console error on new chat confirmation screen #55323
Version Number: Reproducible in staging?: Needs Reproduction Reproducible in production?: Needs Reproduction If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@allroundexperts Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Click on + and select new chat.
Enter a couple of emails, and add them to the group.
Click Next.
Remove one of the member.
Expected Result:
Member removed and No console error
Actual Result:
Console error stating that function components can not be passed refs
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Please re-state the problem that we are trying to solve in this issue.
Console error on the new group confirm page.
What is the root cause of that problem?
The error comes from AvatarWithImagePicker component. The component is wrapped with withNavigationFocus HOC. The HOC pass a ref to the wrapped component
What changes do you think we should make in order to solve the problem?
withNavigationFocus only have usages left on 2 files. Instead of using the HOC, we can just use the useIsFocused hook. So, I'm suggesting to delete the HOC and replace it with useIsFocused hook on AvatarWithImagePicker and AppleSignIn/index.tsx.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
changed the title [-][$250] Console error on new chat confirmation screen[/-][+][HOLD for payment 2025-02-06] [$250] Console error on new chat confirmation screen[/+]on Jan 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.91-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@allroundexperts@slafortune@allroundexperts The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
melvin-bot commentedon Jan 15, 2025
Triggered auto assignment to @slafortune (
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.MelvinBot commentedon Jan 15, 2025
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
bernhardoj commentedon Jan 16, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Console error on the new group confirm page.
What is the root cause of that problem?
The error comes from AvatarWithImagePicker component. The component is wrapped with
withNavigationFocusHOC. The HOC pass a ref to the wrapped componentApp/src/components/withNavigationFocus.tsx
Lines 15 to 19 in 5133090
but the AvatarWithImagePicker doesn't forward it using
forwardRef.App/src/components/AvatarWithImagePicker.tsx
Line 469 in 5133090
What changes do you think we should make in order to solve the problem?
withNavigationFocusonly have usages left on 2 files. Instead of using the HOC, we can just use theuseIsFocusedhook. So, I'm suggesting to delete the HOC and replace it withuseIsFocusedhook onAvatarWithImagePickerandAppleSignIn/index.tsx.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
shubham1206agra commentedon Jan 16, 2025
Can repro. Please assign me C+ as per https://expensify.slack.com/archives/C02NK2DQWUX/p1736978752708209
allroundexperts commentedon Jan 16, 2025
@shubham1206agra But I posted this bug, and was able to reproduce.
shubham1206agra commentedon Jan 16, 2025
I am not sure, but I followed the rules. So, I should be C+ here
21 remaining items
[-][$250] Console error on new chat confirmation screen[/-][+][HOLD for payment 2025-02-06] [$250] Console error on new chat confirmation screen[/+]melvin-bot commentedon Jan 30, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 30, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.91-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-02-06. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 30, 2025
@allroundexperts @slafortune @allroundexperts The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Feb 6, 2025
Payment Summary
Upwork Job
BugZero Checklist (@slafortune)
slafortune commentedon Feb 6, 2025
Role C+ @allroundexperts owed $250 via NewDot
Role Contributor - @bernhardoj owed $250 via NewDot
bernhardoj commentedon Feb 7, 2025
Requested in ND.
JmillsExpensify commentedon Feb 10, 2025
$250 approved for @bernhardoj
JmillsExpensify commentedon Jun 13, 2025
$250 approved for @allroundexperts