Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

EffectContext.md

32 lines666 Bytes

1---
2id: EffectContext
3title: EffectContext
4---
5​
6Defined in: [packages/db/src/query/effect.ts:88](https://github.com/TanStack/db/blob/main/packages/db/src/query/effect.ts#L88)
7​
8Context passed to effect handlers
9​
10## Properties
11​
12### effectId
13​
14```ts
15effectId: string;
16```
17​
18Defined in: [packages/db/src/query/effect.ts:90](https://github.com/TanStack/db/blob/main/packages/db/src/query/effect.ts#L90)
19​
20ID of this effect (auto-generated if not provided)
21​
22***
23​
24### signal
25​
26```ts
27signal: AbortSignal;
28```
29​
30Defined in: [packages/db/src/query/effect.ts:92](https://github.com/TanStack/db/blob/main/packages/db/src/query/effect.ts#L92)
31​
32Aborted when effect.dispose() is called