Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

SubscriptionStatusEvent.md

54 lines1.0 KB

1---
2id: SubscriptionStatusEvent
3title: SubscriptionStatusEvent
4---
5​
6Defined in: [packages/db/src/types.ts:246](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L246)
7​
8Event emitted when subscription status changes to a specific status
9​
10## Type Parameters
11​
12### T
13​
14`T` *extends* [`SubscriptionStatus`](../type-aliases/SubscriptionStatus.md)
15​
16## Properties
17​
18### previousStatus
19​
20```ts
21previousStatus: SubscriptionStatus;
22```
23​
24Defined in: [packages/db/src/types.ts:249](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L249)
25​
26***
27​
28### status
29​
30```ts
31status: T;
32```
33​
34Defined in: [packages/db/src/types.ts:250](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L250)
35​
36***
37​
38### subscription
39​
40```ts
41subscription: Subscription;
42```
43​
44Defined in: [packages/db/src/types.ts:248](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L248)
45​
46***
47​
48### type
49​
50```ts
51type: `status:${T}`;
52```
53​
54Defined in: [packages/db/src/types.ts:247](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L247)