DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/type-aliases/LoadSubsetFn.md
LoadSubsetFn
ts
type LoadSubsetFn = (options) => true | Promise<void>;Defined in: packages/db/src/types.ts:385
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 receipt from the sync commit() calls that establish the loaded subset. A result describes only the exact options passed to this call.
Parameters#
options#
Returns#
true | Promise<void>