Closed beamercola closed 3 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!
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!