Can't create cart using @shopify/hydrogen-react

Tsredi
Shopify Partner
12 1 3

So the application is wrapped in ShopifyProvider & CartProvider, all the necessary API information seems to be correct, but whenever I try to create cart using useCart() Hook, it starts creating it but finishes with "uninitialized".

 

Product Id is also correct.

 

Here's the code: 

Tsredi_0-1679934086072.png

Tsredi_1-1679934106475.png

Tsredi_2-1679934154293.png

 

Reply 1 (1)

Tsredi
Shopify Partner
12 1 3

Looks like I was passing {id: globalProductId}, instead of {merchandiseId: globalVariantId}