# SubscriptionStatusChangeEvent

Defined in: [packages/db/src/types.ts:236](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L236)

Event emitted when subscription status changes

## Properties

### previousStatus

```ts
previousStatus: SubscriptionStatus;
```

Defined in: [packages/db/src/types.ts:239](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L239)

***

### status

```ts
status: SubscriptionStatus;
```

Defined in: [packages/db/src/types.ts:240](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L240)

***

### subscription

```ts
subscription: Subscription;
```

Defined in: [packages/db/src/types.ts:238](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L238)

***

### type

```ts
type: "status:change";
```

Defined in: [packages/db/src/types.ts:237](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L237)
