AlexanderProd / gatsby-shopify-starter

🛍 Simple starter to build a blazing fast Shopify store with Gatsby.
https://gatsby-shopify-starter.alexanderhoerl.de
Other
422 stars 95 forks source link

Add To Cart button needs to be disabled when adding item to cart #14

Closed gregleeper closed 5 years ago

gregleeper commented 5 years ago

I've noticed that when a user clicks the Add To Cart button and then clicks again before the item is done adding it erases the contents of the cart and nothing gets added. This is noticeable on slower connection speeds.

` <button className="btn btn-primary" type="submit" disabled={!available || context.adding} onClick={handleAddToCart}

Add to Cart `

AlexanderProd commented 5 years ago

Thanks for the suggestion, I‘ll implement it.

gregleeper commented 5 years ago

👍Thanks for the awesome starter! You saved me a ton of time.