This page's documentation only applies to Chord's Next.js starter prior to the release of the React. The Next.js starter now uses the React SDK and does not use the methods documented on this page. Check out the React SDK Reference for complete documentation, and the React SDK Migration Guidefor details on how to upgrade.
The useProduct hook returns a set of functions for product-related operations.
The useProduct hook returns an object with these properties:
The createStockRequest adds the customer to a product variant wait list in the OMS. When the variant is marked back in stock, customers on the wait list will automatically receive an email notification.
The email address to sent an email to when the variant is back in stock.
The variant SKU.
For kits only, the slug of the kit.
Promise<void>: A Promise that resolves when the stock request has been created.