Skip to content

Remove cart Element#487

Merged
tylersmith-stripe merged 4 commits intomasterfrom
tylersmith/remove-cart-element
Apr 2, 2024
Merged

Remove cart Element#487
tylersmith-stripe merged 4 commits intomasterfrom
tylersmith/remove-cart-element

Conversation

@tylersmith-stripe
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 😢

useAttachEvent(element, 'ready', readyCallback);

const changeCallback =
type === 'cart'
Copy link
Copy Markdown
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