-
Notifications
You must be signed in to change notification settings - Fork 270
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
Remove cart Element #487
Conversation
`mounts <${displayName}>`, | ||
'customCheckoutSdk' in ctx | ||
); | ||
useElementsOrCustomCheckoutSdkContextWithUseCase(`mounts <${displayName}>`); |
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.
@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.
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.
RIP 😢
@@ -122,26 +105,6 @@ const createElementComponent = ( | |||
|
|||
useAttachEvent(element, 'ready', readyCallback); | |||
|
|||
const changeCallback = | |||
type === 'cart' |
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.
it's cool that we can clean up these conditionals!
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