TanStack

LoadSubsetFn

Type Alias: LoadSubsetFn()

ts
type LoadSubsetFn = (options) => true | Promise<void>;

Defined in: packages/db/src/types.ts:346

Loads one subset and transfers its ongoing resource ownership only after returning true or a promise. An implementation that throws synchronously must release any partially acquired resource before throwing. A successful implementation must await or return every applied receipt from the sync commit() calls that establish the loaded subset.

Parameters

options

LoadSubsetOptions

Returns

true | Promise<void>