Open History to see the last commit
1---
2id: SubscriptionStatusChangeEvent
3title: SubscriptionStatusChangeEvent
4---
5
6Defined in: [packages/db/src/types.ts:236](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L236)
7
8Event emitted when subscription status changes
9
10## Properties
11
12### previousStatus
13
14```ts
15previousStatus: SubscriptionStatus;
16```
17
18Defined in: [packages/db/src/types.ts:239](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L239)
19
20***
21
22### status
23
24```ts
25status: SubscriptionStatus;
26```
27
28Defined in: [packages/db/src/types.ts:240](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L240)
29
30***
31
32### subscription
33
34```ts
35subscription: Subscription;
36```
37
38Defined in: [packages/db/src/types.ts:238](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L238)
39
40***
41
42### type
43
44```ts
45type: "status:change";
46```
47
48Defined in: [packages/db/src/types.ts:237](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L237)