跳到主要内容

useRepositoryQuery()

function useRepositoryQuery<T, TOptions, RT>(
EntityType,
method,
defaultValue,
options): RxDBResource<RT>;

Defined in: hooks.ts:47

RxDB 仓库查询的核心钩子实现 管理响应式订阅和状态更新

Type Parameters

Type Parameter
T extends EntityType
TOptions
RT

Parameters

ParameterType
EntityTypeT
methodstring
defaultValueRT
optionsUseOptions<TOptions>

Returns

RxDBResource<RT>