-
Notifications
You must be signed in to change notification settings - Fork 396
refactor(checkout): CHECKOUT-9386 Convert CreditCardPaymentMethodComponent #2559
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
base: master
Are you sure you want to change the base?
Conversation
|
||
export default CreditCardPaymentMethodComponent; | ||
void reInit(); | ||
}, [selectedInstrumentId, isAddingNewCard]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed method
here. The rest of the PR is the same as #2530.
@@ -11,6 +11,7 @@ | |||
"@typescript-eslint/no-unsafe-argument": "off", | |||
"@typescript-eslint/no-unnecessary-condition": "off", | |||
"@typescript-eslint/consistent-type-assertions": "off", | |||
"@typescript-eslint/naming-convention": "off" | |||
"@typescript-eslint/naming-convention": "off", | |||
"react-hooks/exhaustive-deps": "off" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it better to ignore a rule when necessary than to ignore it for the whole package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving conversation to #2562 (comment)
A quick update: I’ve attached videos of manual testing for the BlueSnap and Access Worldpay CC payment methods to the PR description. |
What/Why?
Re-release #2530 with updated dependencies due to an incident.
Convert class component
CreditCardPaymentMethodComponent
into function component.Replacing class components with function components eliminates the need for traditional lifecycle methods and enables full adoption of React 18 features like hooks and concurrent rendering.
This modernization aligns with React’s roadmap and ensures greater compatibility with future updates.
Rollout/Rollback
Revert.
Testing
CI.
Manual Testing
Bluesnap (The CC form fields freezing is a known issue)
Screen.Recording.2025-09-10.at.14.11.36.mov
Access Worldpay
Screen.Recording.2025-09-10.at.14.25.41.mov