-
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
[HOLD for payment 2023-12-26] [$500] Dev: Web - Console error in modal route navigation #31487
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01cb7a8b97975fcd6d |
Triggered auto assignment to @bfitzexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
cc: @getusha |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error in modal route navigation What is the root cause of that problem?We're not using the latest version of "react-navigation/native", the old version still uses What changes do you think we should make in order to solve the problem?Upgrate "react-navigation/native" to latest (or the whole This issue has been fixed there via this commit What alternative solutions did you explore? (Optional)Only add the code that fixes the issue as a patch. The library upgrade can be later since I assume we might have a plan for that. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error in modal route navigation What is the root cause of that problem?We are using backHandler and it's only supported in native android devices for going back, this is the root cause. What changes do you think we should make in order to solve the problem?We need to apply following changes:
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
|
Adding engineering just to confirm this is reproducible since it's a dev error. |
Triggered auto assignment to @arosiclair ( |
@bfitzexpensify I reproduced 👍 |
Great. @ntdiary, looks like we've got a few proposals ready for review. |
Proposalfrom: @abdullahbinahmed Please re-state the problem that we are trying to solve in this issue.Backhandler is not supported for the web and is being called by React Modal so we are getting the error on the Web in console. What is the root cause of that problem?BackHandler is imported in web code but is not part of the react-native-web API (0.19) anymore. What changes do you think we should make in order to solve the problem?Backhandler is not present for web code as mentioned above so if the website is being accessed by the user from the web interface, we should detect it and not call backhandler for it.
The patch would be created as a solution as follows:
The idea behind the solution is we only add the listeners when users tries to go back. This way we can make sure that the listener is added as late as possible. This will make sure that our handler will run first when back button is pressed. What alternative solutions did you explore? (Optional)We cannot update the version of the package as this fix is not included in a version release yet so we have to create a patch file for this issue. |
📣 @abdullahbinahmed! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Hi, @arosiclair, is this the error you see when opening the app or refreshing the app? If so, we had a similar issue #31120 before, and the final decision was to close that issue and wait for the upgrade. |
@arosiclair, sure, the latest fix code has been included in the v6.1.8. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Okay looks like that is @dukenv0307's original proposal. Let's go ahead and upgrade that package. |
📣 @ntdiary 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @allroundexperts Please request via NewDot manual requests for the Reporter role ($50) |
@ntdiary The PR is ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.13-8 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-12-26. 🎊 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:
|
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:
|
Payments finalised, @ntdiary please complete the BZ checklist when you get a moment - thanks! |
This error is actually caused by api changes of |
Thanks @ntdiary, agreed - let's close this out |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: Dev 1.4.0
Reproducible in staging?: n
Reproducible in production?: n
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: https://expensify.slack.com/archives/C049HHMV9SM/p1700217148936209
Action Performed:
Expected Result:
No console error in modal route navigation
Actual Result:
Console error in modal route navigation
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: