DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/interfaces/Effect.md
Effect
Defined in: packages/db/src/query/effect.ts:149
Handle returned by createEffect
Properties#
dispose()#
ts
dispose: () => Promise<void>;Defined in: packages/db/src/query/effect.ts:154
Dispose the effect and await in-flight handlers. Calls during one cleanup attempt, including calls from abort/release callbacks, share its outcome.
Returns#
Promise<void>
disposed#
ts
readonly disposed: boolean;Defined in: packages/db/src/query/effect.ts:156
Whether this effect has been disposed