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 53975eb commit 3a39781Copy full SHA for 3a39781
components/Cart/CartPage/CartItemsContainer.component.jsx
@@ -20,6 +20,8 @@ const CartItemsContainer = () => {
20
const { data, refetch } = useQuery(GET_CART, {
21
notifyOnNetworkStatusChange: true,
22
onCompleted: () => {
23
+ refetch();
24
+
25
// Update cart in the localStorage.
26
const updatedCart = getFormattedCart(data);
27
localStorage.setItem('woocommerce-cart', JSON.stringify(updatedCart));
0 commit comments