vue-storefront icon indicating copy to clipboard operation
vue-storefront copied to clipboard

UseCart clear() method doesn't clear local state of useCart composable

Open sync-by-unito[bot] opened this issue 4 years ago • 0 comments
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

sync-by-unito[bot] avatar Nov 05 '21 13:11 sync-by-unito[bot]