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.
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”idField?
Section titled “idField?”
optionalidField?: keyofT&string
Defined in: types.ts:31
Record id field events are matched on.
Default
Section titled “Default”"id"insert?
Section titled “insert?”
optionalinsert?:"start"|"end"
Defined in: types.ts:38
Where created records go — mirror the query’s $sort.
Default
Section titled “Default”"end"matches?
Section titled “matches?”
optionalmatches?: (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.
Parameters
Section titled “Parameters”record
Section titled “record”T
Returns
Section titled “Returns”boolean
Default
Section titled “Default”() => truemode:
"patch"
Defined in: types.ts:29