Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bc-peng
Copy link
Contributor

@bc-peng bc-peng commented Sep 4, 2025

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

@bc-peng bc-peng requested a review from a team as a code owner September 4, 2025 01:12

export default CreditCardPaymentMethodComponent;
void reInit();
}, [selectedInstrumentId, isAddingNewCard]);
Copy link
Contributor Author

@bc-peng bc-peng Sep 4, 2025

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"
Copy link
Contributor

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?

Copy link
Contributor Author

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)

@bc-peng
Copy link
Contributor Author

bc-peng commented Sep 10, 2025

A quick update: I’ve attached videos of manual testing for the BlueSnap and Access Worldpay CC payment methods to the PR description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants