thetrevorharmon / gatsby-theme-shopify-manager

The easiest way to start a Shopify shop on Gatsby.
https://gatsby-theme-shopify-manager.netlify.app/
MIT License
121 stars 11 forks source link

Dealing with Inventory #75

Closed beamercola closed 3 years ago

beamercola commented 4 years ago

Do you have an opinion on the best way to handle inventory checking?

I'm familiar with this method (https://github.com/AlexanderProd/gatsby-shopify-starter/blob/master/src/components/ProductForm/index.js) Which seems fine, though in my case I show what variants are available (strike through ones that aren't).

I'm starting to think just remote fetching options/variants (using like SWR) might just be the best option.

Just curious if you had an opinion on it - thanks!