App: [HOLD for payment 2023-09-06] [$2000] Dev: Web - Console error on click of Next button in 2FA
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
- Go to Settings > Security > Two-factor authentication
- Click on copy button and click on Next button
- Scan the qr code in authenticator app
- Enter six digit code
- Click on Next button
Expected Result:
It should not show any console error
Actual Result:
Console error appears (Failed prop type: Invalid prop forwardedRef supplied to withOnyx(Component).)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android / native
- Android / Chrome
- iOS / native
- iOS / Safari
- MacOS / Chrome / Safari
- MacOS / Desktop
Version Number: 1.3.40-5 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 Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/9a290511-15ae-480b-bd0e-c428cae3da9c
Expensify/Expensify Issue URL: Issue reported by: @gadhiyamanan Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689328521600739
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01d58d7cdae12240f0
- Upwork Job ID: 1684614195949875200
- Last Price Increase: 2023-08-08
- Automatic offers:
- aimane-chnaif | Reviewer | 26032740
- kushu7 | Contributor | 26032742
- gadhiyamanan | Reporter | 26032744
- tienifr | Contributor | 26054370
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 65 (44 by maintainers)
As this is not urgent issue, I think we can still wait until holding PR deploy to production. Hope it won’t happen again but since it’s big change, there’s possibility that could be reverted due to critical issues.
Sure, let’s remove hold and @tienifr please raise app PR cc: @hayata-suenaga
Not overdue
yes, we should
Thanks @hannojg @aimane-chnaif @hayata-suenaga @tienifr Maybe we can put this on hold untill #24041 gets merged?
yeah for the latest only version to work you have to make this important change:
Onyx will be updated to the latest version in this PR:
(The PR that was linked earlier got reverted)
@tienifr when you raise a PR, also bump
react-native-onyxversion. Our changes got merged.@aimane-chnaif PR is up: https://github.com/Expensify/react-native-onyx/pull/296
cc @hayata-suenaga
nice suggestion @aimane-chnaif
But we’re actually migrating the entire application to TypeScript soon, so
forwardRefwill have type arguments in place in the same file as the component wrapped byforwardRef.This is the example code: https://react-typescript-cheatsheet.netlify.app/docs/basic/getting-started/forward_and_create_ref/#:~:text=%3B } }-,forwardRef%3A,-import { forwardRef