跳到主要内容

useGet()

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

Defined in: hooks.ts:110

通过 ID 获取单个实体。

Type Parameters

Type Parameter
T extends EntityType

Parameters

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

Returns

RxDBResource<InstanceType<T> | undefined>