Open History to see the last commit
1---
2id: SubscriptionStatusChangeEvent
3title: SubscriptionStatusChangeEvent
4---
5
6Defined in: [packages/db/src/types.ts:221](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L221)
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:224](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L224)
19
20***
21
22### status
23
24```ts
25status: SubscriptionStatus;
26```
27
28Defined in: [packages/db/src/types.ts:225](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L225)
29
30***
31
32### subscription
33
34```ts
35subscription: Subscription;
36```
37
38Defined in: [packages/db/src/types.ts:223](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L223)
39
40***
41
42### type
43
44```ts
45type: "status:change";
46```
47
48Defined in: [packages/db/src/types.ts:222](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L222)