-
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: create shopping-cart package and ShoppingCartProvider #46532
Commits on Oct 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1a98506 - Browse repository at this point
Copy the full SHA 1a98506View commit details -
Configuration menu - View commit details
-
Copy full SHA for bde0cf9 - Browse repository at this point
Copy the full SHA bde0cf9View commit details -
Move SiteData type to its own TS file
This doesn't feel like the right place to put it, but I'm not sure where is better at the moment.
Configuration menu - View commit details
-
Copy full SHA for b3a1c63 - Browse repository at this point
Copy the full SHA b3a1c63View commit details -
Use useShoppingCart in CompositeCheckout
This replaces the useShoppingCartManager hook with a simpler hook that gets its data from the ShoppingCartProvider.
Configuration menu - View commit details
-
Copy full SHA for b71562f - Browse repository at this point
Copy the full SHA b71562fView commit details -
Wrap CompositeCheckout in ShoppingCartProvider
This creates a new function, getCartKey, to handle calculating the cart key (or undefined).
Configuration menu - View commit details
-
Copy full SHA for 9191c14 - Browse repository at this point
Copy the full SHA 9191c14View commit details -
Replace canInitializeCart with a falsy cartKey
This modifies useShoppingCartManager so that if its cartKey is falsy, it will delay loading the cart (or will mark the cart as loading if it has already loaded).
Configuration menu - View commit details
-
Copy full SHA for 127561d - Browse repository at this point
Copy the full SHA 127561dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e11d5b - Browse repository at this point
Copy the full SHA 3e11d5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdec721 - Browse repository at this point
Copy the full SHA cdec721View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1eac03d - Browse repository at this point
Copy the full SHA 1eac03dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a62fcd - Browse repository at this point
Copy the full SHA 3a62fcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5fe787 - Browse repository at this point
Copy the full SHA e5fe787View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1314fb - Browse repository at this point
Copy the full SHA b1314fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11c3910 - Browse repository at this point
Copy the full SHA 11c3910View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44ebd71 - Browse repository at this point
Copy the full SHA 44ebd71View commit details -
Configuration menu - View commit details
-
Copy full SHA for c139de2 - Browse repository at this point
Copy the full SHA c139de2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4d1372 - Browse repository at this point
Copy the full SHA a4d1372View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32beed1 - Browse repository at this point
Copy the full SHA 32beed1View commit details -
This was accidentally left in from a previous PR.
Configuration menu - View commit details
-
Copy full SHA for 6dc5d91 - Browse repository at this point
Copy the full SHA 6dc5d91View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e776fd - Browse repository at this point
Copy the full SHA 1e776fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f85a2b8 - Browse repository at this point
Copy the full SHA f85a2b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b50573f - Browse repository at this point
Copy the full SHA b50573fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64879de - Browse repository at this point
Copy the full SHA 64879deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 553cbe9 - Browse repository at this point
Copy the full SHA 553cbe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecd7dc1 - Browse repository at this point
Copy the full SHA ecd7dc1View commit details -
Allow initializing the cart multiple times
Previously, the concept of initializing the cart happened only once. Now, the CART_RELOAD action can cause another initialize, so useInitializeCartFromServer cannot count on a flag to know if it should allow an initialize or not. Instead, we rely on the cache status, which is notified that we are fetching the initial data by a new action on the shopping cart reducer.
Configuration menu - View commit details
-
Copy full SHA for b179210 - Browse repository at this point
Copy the full SHA b179210View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fabbe6 - Browse repository at this point
Copy the full SHA 1fabbe6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 560831a - Browse repository at this point
Copy the full SHA 560831aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c773d18 - Browse repository at this point
Copy the full SHA c773d18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cabf12 - Browse repository at this point
Copy the full SHA 2cabf12View commit details -
Configuration menu - View commit details
-
Copy full SHA for b747379 - Browse repository at this point
Copy the full SHA b747379View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83b0f2e - Browse repository at this point
Copy the full SHA 83b0f2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53f225a - Browse repository at this point
Copy the full SHA 53f225aView commit details -
Remove formatValueForCurrency from composite-checkout README
It does not exist.
Configuration menu - View commit details
-
Copy full SHA for 627560d - Browse repository at this point
Copy the full SHA 627560dView commit details -
Remove exported cart functions from shopping-cart
They are all internal only.
Configuration menu - View commit details
-
Copy full SHA for 93f13ca - Browse repository at this point
Copy the full SHA 93f13caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19b38ee - Browse repository at this point
Copy the full SHA 19b38eeView commit details