hydrogen
hydrogen copied to clipboard
Cart - Product quantities
What is the location of your example repository?
demo store
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
demostore 2.1.3
What version of Remix are you using?
demostore 2.1.3
Steps to Reproduce
https://github.com/Shopify/hydrogen/assets/104806938/95adbac0-0cac-476d-826a-3c6b796d6fb2
Expected Behavior
Quantity stays the same
Actual Behavior
Quantity is bugging
I'm assuming there might not be enough stock, so it goes back to the max stock value. The number it goes back to is different from a product to another.
I think this is resolved with the new useOptimisticCart()