Open History to see the last commit
Defined in: packages/db/src/types.ts:1218
Something that reads a Collection, as listed by collection.subscribers:
a live query, an Effect, or a direct subscription.
Properties#
active#
readonly active: boolean;
Defined in: packages/db/src/types.ts:1227
Whether something still reads through this dependent: an Effect or a
subscription always does; a live query does while it has a subscriber.
cleanup() refuses only while an active live query or Effect remains.
collection?#
readonly optional collection: Collection<any, any, any, any, any>;
Defined in: packages/db/src/types.ts:1221
A live query's Collection; a pooled live query has none.
end()#
end: () => Promise<void>;
Defined in: packages/db/src/types.ts:1232
End this dependent: clean up the live query with its own dependents, dispose the Effect, or end the subscription.
Returns#
Promise<void>
kind#
readonly kind: "live-query" | "effect" | "subscription";
Defined in: packages/db/src/types.ts:1219