-
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
[$1000] Workspace - User name is not updated dynamically in Workspace Invite Member page #22175
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
This isn't reproducible. |
I can reproduce. Triaging to external Screen.Recording.2023-07-06.at.11.21.04.PM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~01cd1d83c4be8598f1 |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The WorkspaceInvitePage component in our application is not updating (re-rendering) as expected when changes are made to the personalDetails prop. This leads to outdated information being displayed on the page, which impacts the usability and user experience of our application. What is the root cause of that problem?The root cause of the problem is that the equality check in our What changes do you think we should make in order to solve the problem?To solve the problem, we should update our comparison logic to not only check for reference changes but also for changes in the actual values of the objects. Current comparison logic: App/src/pages/workspace/WorkspaceInvitePage.js Lines 93 to 97 in 60f4817
Here's the code snippet for the proposed solution: const didPersonalDetailsChange = prevProps.personalDetails !== this.props.personalDetails
|| !_.isEqual(prevProps.personalDetails, this.props.personalDetails);
const didPolicyMembersChange = prevProps.policyMembers !== this.props.policyMembers
|| !_.isEqual(prevProps.policyMembers, this.props.policyMembers);
if (didPersonalDetailsChange || didPolicyMembersChange) {
this.updateOptionsWithSearchTerm(this.state.searchTerm);
} Result: result.mp4What alternative solutions did you explore? (Optional) |
@sonialiap @mollfpr could you review my proposal please? |
I couldn't reproduce this with the OP step. @sonialiap I couldn't access your video attachment to see the step. Screen.Recording.2023-07-10.at.10.37.17.mov |
I can't reproduce any longer. I'm guessing this was fixed by another PR Screen.Recording.2023-07-13.at.3.58.59.PM.mov |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #21700
Action Performed:
Expected Result:
B's name is changed correctly in A
Actual Result:
B's name is not updated in A
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.36.2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6115730_bandicam_2023-07-04_17-05-16-341.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: