跳到主要内容

useFindOne()

function useFindOne<T>(EntityType, options): RxDBResource<InstanceType<T> | undefined>;

Defined in: hooks.ts:122

查找第一个匹配实体。

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterType
EntityTypeT
optionsUseOptions<EntityStaticType<T, "findOneOptions">>

Returns

RxDBResource<InstanceType<T> | undefined>