vue-storefront
vue-storefront copied to clipboard
UseCart clear() method doesn't clear local state of useCart composable
trafficstars
Hey I found one bug related to useCart composable functionality. Namely if we use clear() method it would clear/delete current cart regarding to the API, however, it doesn't clear local state of the cart. We have to use setCart(null) method for clearing vue component cart data