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:221](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L221)
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:224](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L224)
21​
22***
23​
24### status
25​
26```ts
27status: SubscriptionStatus;
28```
29​
30Defined in: [packages/db/src/types.ts:225](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L225)
31​
32***
33​
34### subscription
35​
36```ts
37subscription: Subscription;
38```
39​
40Defined in: [packages/db/src/types.ts:223](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L223)
41​
42***
43​
44### type
45​
46```ts
47type: "status:change";
48```
49​
50Defined in: [packages/db/src/types.ts:222](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L222)