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

SubscriptionStatusChangeEvent.md

50 lines1000 Bytes

1---
2id: SubscriptionStatusChangeEvent
3title: SubscriptionStatusChangeEvent
4---
5​
6# Interface: SubscriptionStatusChangeEvent
7​
8Defined in: [packages/db/src/types.ts:193](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L193)
9​
10Event emitted when subscription status changes
11​
12## Properties
13​
14### previousStatus
15​
16```ts
17previousStatus: SubscriptionStatus;
18```
19​
20Defined in: [packages/db/src/types.ts:196](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L196)
21​
22***
23​
24### status
25​
26```ts
27status: SubscriptionStatus;
28```
29​
30Defined in: [packages/db/src/types.ts:197](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L197)
31​
32***
33​
34### subscription
35​
36```ts
37subscription: Subscription;
38```
39​
40Defined in: [packages/db/src/types.ts:195](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L195)
41​
42***
43​
44### type
45​
46```ts
47type: "status:change";
48```
49​
50Defined in: [packages/db/src/types.ts:194](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L194)