-
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
[HOLD for payment 2023-09-29] Find a better solution for removing visibilityListeners when changing the visible reports #27502
Comments
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Hi! I'll work on this issue :) |
@mallenexpensify I'll remove you from this one since we don't need to manage contributors for now! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Fix removal logic of What is the root cause of that problem?Currently on web and desktop there is an issue with setting multiple event listeners for report visibility - it is related to the fact that reports were not being unmounted at all, so the cleanup function that was supposed to remove listeners was not called. What changes do you think we should make in order to solve the problem?Move the logic of setting What alternative solutions did you explore? (Optional)Attaching the logic to |
👁️ 👁️ |
Note: we found that in some cases multiple openReport calls are made. If these calls are related to one report then we should prevent them and allow only one. #27642 (comment) It was decided to solve this in a separate issue #27642 (comment) as it requires further analysis and it is different from current issue. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 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 2023-09-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
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:
|
@danieldoglas, @parasharrajat, @staszekscp Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@mallenexpensify , readding you to the issue since we need to deal with C+ payment in this one! |
Contributor+: @parasharrajat is due $500 via NewDot Regression Test isn't needed so closing! |
Payment requested as per #27502 (comment) |
$500 payment approved for @parasharrajat based on BZ summary. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
While navigating through the app, we're adding all components to the navigation stack. When using Web or Desktop, both of which show LHN and the ReportPage simultaneously, we never unmount the components from a previous report when navigating to a new one.
That is a problem because all reports have an event listener attached to them related to the app visibility, so every time a user leaves the application and go back to it, we do a
OpenReport
call. That means that for all reports in the history, we would do oneOpenReport
call.We've removed the
OpenReport
call after discussing it here, but that is not removing the listener, it's just checking inside the listener if we should really call the function.One possible way to solve this is to have a function related to the FreezeWrapper, that every time we freeze a screen in the stack, it removes the listener, but other solutions might be explored.
Action Performed:
Break down in numbered steps
Expected Result:
Describe what you think should've happened
Actual Result:
Describe what actually happened
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:
Reproducible in staging?:
Reproducible in production?:
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
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: