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:225](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L225)
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:228](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L228)
27
28***
29
30### status
31
32```ts
33status: T;
34```
35
36Defined in: [packages/db/src/types.ts:229](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L229)
37
38***
39
40### subscription
41
42```ts
43subscription: Subscription;
44```
45
46Defined in: [packages/db/src/types.ts:227](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L227)
47
48***
49
50### type
51
52```ts
53type: `status:${T}`;
54```
55
56Defined in: [packages/db/src/types.ts:226](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L226)