Skip to content

RealtimePatchOptions

Defined in: types.ts:28

useFind’s in-place cache mode: service events are written straight into this hook’s cached find() result instead of invalidating it, so the list changes with no refetch. Events carry the full record, but the client can’t re-run the server’s where/$sort — matches and insert mirror them. The provider still invalidates everything on socket reconnect, so events missed while disconnected are recovered by one refetch.

T

optional idField?: keyof T & string

Defined in: types.ts:31

Record id field events are matched on.

"id"

optional insert?: "start" | "end"

Defined in: types.ts:38

Where created records go — mirror the query’s $sort.

"end"

optional matches?: (record) => boolean

Defined in: types.ts:36

Whether a created/updated/patched record belongs in this result — mirror the query’s filter. A changed record that stops matching is removed.

T

boolean

() => true

mode: "patch"

Defined in: types.ts:29