-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] Dev - Console log error displayed on clicking 'Select a workspace' dropdown value #23818
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The issue at hand involves a What is the root cause of that problem?Upon reviewing the console error and the associated code, the root cause of the problem appears to be tied to a state update operation that occurs during the rendering of Lines 348 to 362 in eb02006
What changes do you think we should make in order to solve the problem?To resolve this issue, the state update operation needs to be moved out of the rendering process. We can accomplish this by wrapping the operation in a Here is how we can modify the function:
By making this modification, we should be able to eliminate the 2.New.Expensify.-.Google.Chrome.2023-07-30.18-09-09.mp4Additionally, it may be possible to slightly optimize this code by moving the |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error displayed When select What is the root cause of that problem?When we select
This code is called during the render process. Setting state during the rendering should be avoided and leads to an unexpected result. In addition, calling the set function of another component during rendering is an error as described here This is the root cause What changes do you think we should make in order to solve the problem?In order to avoid this pattern, we can use
This works great What alternative solutions did you explore? (Optional) |
Moving on |
Job added to Upwork: https://www.upwork.com/jobs/~01c6e4120bf877ce30 |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Hi, I’m Michael (Mykhailo) from Callstack and I would like to work in this issue, because I am the author of the #21950. |
📣 @rushatgabhane Please request via NewDot manual requests for the Reviewer role ($1000) |
📣 @Natnael-Guchima 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Accepted the offer. Thanks. |
Hi, so a call stack member can propose anytime and they'll get the job? @trjExpensify @rushatgabhane |
My understanding is that it's specifically addressing a regression from the PR author that introduced it, and so it makes sense to "fix your work" in this case. |
So is he not going to get paid? |
I don't think Expensify's financial arrangement with agencies we partner with are in scope of the discussion we're having here, Yogesh. |
Oh... makes sense. Apologies for the misunderstanding earlier |
#23919 was merged. Is the issue going to be closed? |
created a manual request - https://staging.new.expensify.com/r/2106109152629952 |
this issue can be closed i guess |
We need to pay @Natnael-Guchima for the bug report right? |
Yes! |
Okay, confirming payments:
Closing this out! |
Reviewed the details for @rushatgabhane. Approved for $1k payment in NewDot based on the BZ confirmation summary above. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Precondition: account should have only one active workspace
4, Click on 'Workspace' dropdown menu
Expected Result:
There should be no console log error
Actual Result:
Console log error displayed [Cannot update a component (
Form
) while rendering a different component (SafeAreaInsetsContext.Consumer
).]Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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
Notes/Photos/Videos: Any additional supporting documentation
Screencast.from.2023-07-27.16-25-04.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Natnael-Guchima
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690464572048079
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: