Defined in: packages/db/src/types.ts:809
T extends object = Record<string, unknown>
optional limit: number;
Defined in: packages/db/src/types.ts:813
optional onStatusChange: (event) => void;
Defined in: packages/db/src/types.ts:806
Internal
Listener for subscription status changes. Registered BEFORE any snapshot is requested, ensuring no status transitions are missed.
void
Omit.onStatusChange
optional orderBy: OrderBy;
Defined in: packages/db/src/types.ts:812
optional where: (row) => any;
Defined in: packages/db/src/types.ts:798
Callback function for filtering changes using a row proxy. The callback receives a proxy object that records property access, allowing you to use query builder functions like eq, gt, etc.
SingleRowRefProxy<T>
any
import { eq } from "@tanstack/db"
collection.subscribeChanges(callback, {
where: (row) => eq(row.status, "active")
})
Omit.where
optional whereExpression: BasicExpression<boolean>;
Defined in: packages/db/src/types.ts:800
Pre-compiled expression for filtering changes
