We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a530ba5 commit bc03a92Copy full SHA for bc03a92
components/Cart/AddToCartButton.component.jsx
@@ -74,6 +74,8 @@ const AddToCartButton = ({ product }) => {
74
const handleAddToCartClick = () => {
75
setRequestError(null);
76
addToCart();
77
+ // Update the cart with new values in React context.
78
+ refetch();
79
};
80
81
// Separate out conditions here for increased readability
0 commit comments