Functions

Function: useSubscription

react-autonomy.useSubscription

▸ useSubscription(props): UseSubscription

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.



JS


Parameters

Name

Type

Description

props

Object



props.subscriptionId

string | number

The ID of the subscription to load and manage.

Returns

UseSubscription

Defined in