-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Checkout: remove handleCheckoutCompleteRedirect #48501
Conversation
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.
This removes a number of props from <Checkout>
that are still passed by <CheckoutContainer>
that could be removed:
- couponCode
- returnToBlockEditor
- returnToHome
- selectedFeature
- purchaseId
- plan
- reduxStore
- redirectTo
- upgradeIntent
- hideNudge
- infoMessage
It also looks like there are props used in <Checkout>
(and passed by <CheckoutContainer>
/<CartData>
) but not in propTypes
:
- cart
- product
- setHeaderText
- isFetchingStoredCards
I think it's also worth removing the class export. |
Is it worth worrying about any of this stuff? It looks like we might pull out the rest of this code soon. |
d8b92d2
to
915774b
Compare
Good eye. I rebased and I think we've finally got all of the code in this directory, but it's a lot, so I've split it into two PRs. This one will just remove |
Cool. There's also some unused stuff in the mapped prop functions in connect. |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
Changes proposed in this Pull Request
This removes the
handleCheckoutCompleteRedirect
function from old checkout'sCheckout
component. The last place it was being used was the (disabled) post-purchase G Suite upsell nudge and that usage has been removed with #48438.This should help confusion around where the post-purchase thank-you page comes from, since it will now always be generated by getThankYouPageUrl.
Testing instructions
None. Make sure the removed code isn't in use anywhere.