Skip to content

Commit db76fb7

Browse files
committed
Refinements code rabbit feedback
1 parent 32a4c45 commit db76fb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/shared/src/react/hooks/useSubscription.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type UseSubscriptionParams = {
3535
*/
3636
export type UseSubscriptionReturn = {
3737
/**
38-
* The subscription object, or `null` if the data hasn't been loaded yet.
38+
* The subscription object, `undefined` before the first fetch, or `null` if no subscription exists.
3939
*/
4040
data: BillingSubscriptionResource | null | undefined;
4141
/**
@@ -47,9 +47,9 @@ export type UseSubscriptionReturn = {
4747
*/
4848
isFetching: boolean;
4949
/**
50-
* Any error that occurred during the data fetch, or `null` if no error occurred.
50+
* Any error that occurred during the data fetch, or `undefined` if no error occurred.
5151
*/
52-
error: Error | null;
52+
error: Error | undefined;
5353
/**
5454
* Function to manually trigger a refresh of the subscription data.
5555
*/

0 commit comments

Comments
 (0)