Having trouble finding avaialableQuantity using ReactHooks and Storefront API

LukasChrapko
Visitor
2 0 1

I am not using graphql but rather React and Redux to manage queries and state and I am having a really hard time finding the availableQuantity property for each of my products. I have updated my shopify-buy dependency to the most recent 2.11.0 and also in my Store front API permissions I checked unauthenticated_read_product_inventory so I'm really not sure what could be causing this.

I am wondering if there is any information that anyone could give me regarding this

Screen Shot 2021-04-27 at 2.23.07 PM.pngScreen Shot 2021-04-27 at 2.28.35 PM.png

thanks

 

Reply 1 (1)

c10s
Shopify Partner
67 12 25

I haven't used the shopify-buy library in a while but I suspect you need to "Expand the SDK" to get the additional field you're after.