Functions
Function: useSubscription
module react autonomy docid\ zoz6w56ubppacr0po0gls usesubscription ▸ usesubscription ( props ) interface usesubscription docid\ xx1c66gnkxayunemibgib the usesubscription hook returns the current loaded subscription and functions for managing the subscription this function has a side effect that will automatically start loading the subscription, if needed, upon initialization import { usesubscription } from '@chordcommerce/react autonomy' export default () => { const { subscription, isfetching } = usesubscription({ subscriptionid 10000 }) if (isfetching) { return ( \<p>loading…\</p> ) } return ( \<p>your subscription will be renewed on {subscription actionabledate}\</p> ) } parameters name type description props object props subscriptionid string | number the id of the subscription to load and manage returns interface usesubscription docid\ xx1c66gnkxayunemibgib defined in packages/react autonomy/src/hooks/use subscription ts 64 https //github com/chordcommerce/chord ui/blob/2b105e1/packages/react autonomy/src/hooks/use subscription ts#l64