Skip to content
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

Remove cart Element #487

Merged
merged 4 commits into from
Apr 2, 2024
Merged

Conversation

tylersmith-stripe
Copy link
Contributor

Summary & motivation

Cart Element is deprecated for now - helping clarify this by removing interfaces & types.

Testing & documentation

Cleaned up test references, and existing tests continue to pass

`mounts <${displayName}>`,
'customCheckoutSdk' in ctx
);
useElementsOrCustomCheckoutSdkContextWithUseCase(`mounts <${displayName}>`);
Copy link
Contributor Author

@tylersmith-stripe tylersmith-stripe Mar 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pololi-stripe mind double-checking my change here and ensure Custom Checkout is still going to be happy? I don't suspect there is an issue, but erring on the side of caution with the ping.

Copy link
Contributor

@awalker-stripe awalker-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP 😢

@@ -122,26 +105,6 @@ const createElementComponent = (

useAttachEvent(element, 'ready', readyCallback);

const changeCallback =
type === 'cart'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's cool that we can clean up these conditionals!

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.

2 participants