Open History to see the last commit
1---
2id: SubscriptionStatusEvent
3title: SubscriptionStatusEvent
4---
5
6# Interface: SubscriptionStatusEvent\<T\>
7
8Defined in: [packages/db/src/types.ts:231](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L231)
9
10Event emitted when subscription status changes to a specific status
11
12## Type Parameters
13
14### T
15
16`T` *extends* [`SubscriptionStatus`](../type-aliases/SubscriptionStatus.md)
17
18## Properties
19
20### previousStatus
21
22```ts
23previousStatus: SubscriptionStatus;
24```
25
26Defined in: [packages/db/src/types.ts:234](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L234)
27
28***
29
30### status
31
32```ts
33status: T;
34```
35
36Defined in: [packages/db/src/types.ts:235](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L235)
37
38***
39
40### subscription
41
42```ts
43subscription: Subscription;
44```
45
46Defined in: [packages/db/src/types.ts:233](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L233)
47
48***
49
50### type
51
52```ts
53type: `status:${T}`;
54```
55
56Defined in: [packages/db/src/types.ts:232](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L232)