-
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
[$250] Expense - In offline, on creating second split expense user not scrolled down to new expense. #54528
Comments
Triggered auto assignment to @sakluger ( |
Edited by proposal-police: This proposal was edited at 2024-12-24 14:06:08 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - In offline, on creating second split expense user not scrolled down to new expense. What is the root cause of that problem?hasNewestReportAction is becoming false here so we are early returning without scrolling to bottom App/src/pages/home/report/ReportActionsList.tsx Lines 425 to 429 in 126d92a
this is because when report prop passed to report action list is memorized here with the dependency being reportOnyx object App/src/pages/home/ReportScreen.tsx Lines 231 to 234 in 126d92a
but adding object as a dependency will only change the value on change of the object reference and in this case it is not changing and the memo is not recalculating on the change of report.lastVisibleActionCreated and up-to-date report data is not provided for ReportActionList so hasNewestReportAction will be false preventing the scrollThe reason why it is only happening for split is because we are directly getting the object reference of the object here and directly setting/mutating the object here and directly setting the object in optimistic data here What changes do you think we should make in order to solve the problem?We have options to solve it
and apply the same fixes if we have same problem of directly mutating onyx data and setting in optimistic data in other cases too What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)We can also directly pass the whole reportOnyx to ReportActionsView but I think we are intentionally memorizing to only re-render on only relevant data for performance reasons. |
Job added to Upwork: https://www.upwork.com/jobs/~021871673363207753108 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
I think @getusha may be on vacation. I'm going to leave the issue as is for the rest of this week, if he's not back yet then we can reassign to keep things moving. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.78-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Device used: Redmi note 10s Android 13
App Component: Money Requests
Action Performed:
Expected Result:
In offline, on creating second split expense user must be scrolled down to new expense.
Actual Result:
In offline, on creating second split expense user not scrolled down to new expense.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6701767_1735043939052.Screenrecorder-2024-12-24-17-59-30-74_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: