scottyzen / woonuxt

Static e-commerce powered by WooCommerce & Nuxt
https://woonuxt.com
GNU General Public License v3.0
574 stars 140 forks source link

Cart Updating Quantity #133

Closed Quinesee closed 3 months ago

Quinesee commented 4 months ago

Hi, I noticed this issue on the staging site: https://v3.woonuxt.com/product/flying-ninja and locally. It happens when you add a product to your cart and then increase the quantity in the cart using a mouse, by clicking the little number arrow. The update quantity gets stuck in a loop and the quantity continues to grow indefinitely. You also can't interact with page because it is stuck in cart update.

What is interesting is that if you type a number in, this doesn't happen.

Testing this on different browsers, I get the same results. In edge and chromium, the quantity number doesn't continue to increment but you do get stuck in an infinite loop. In firefox, you can see the quantity increasing.

Kythonlk commented 4 months ago

This happen in cart and checkout also image

scottyzen commented 4 months ago

I've just updated the cart. It's working for me on the demo. If ye are still having issues please let me know. And if there is anything showing in the console. Thanks

Kythonlk commented 4 months ago

Still have the issue i think state contentiously updating by loop and now count is not showing

image

scottyzen commented 4 months ago

Thanks @Kythonlk. I've just added a debounce to the input. I think that was the cause! Thanks for the heads up 👍🏻