Chord OMS
...
Next.js
SDK Reference

useSubscriptions

2min

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 useSubscriptions hook returns an object representing the current user's subscriptions.

Example

JS


Returns

The useSubscriptions hook returns an array of subscriptions.