Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
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:
Looks like I was passing {id: globalProductId}, instead of {merchandiseId: globalVariantId}