API Reference
@univerjs
@univerjs/core
functions
Usedependency

@univerjs/core v0.4.2Docs


Function: useDependency()

useDependency(id, lookUp)

function useDependency<T>(id, lookUp?): T

Type Parameters

Type Parameter
T

Parameters

ParameterType
idDependencyIdentifier<T>
lookUp?LookUp

Returns

T

Defined in

submodules/univer/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactHooks.d.ts:3

useDependency(id, quantity, lookUp)

function useDependency<T>(
   id, 
   quantity, 
   lookUp?): T[]

Type Parameters

Type Parameter
T

Parameters

ParameterType
idDependencyIdentifier<T>
quantityMANY
lookUp?LookUp

Returns

T[]

Defined in

submodules/univer/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactHooks.d.ts:4

useDependency(id, quantity, lookUp)

function useDependency<T>(
   id, 
   quantity, 
   lookUp?): T | null

Type Parameters

Type Parameter
T

Parameters

ParameterType
idDependencyIdentifier<T>
quantityOPTIONAL
lookUp?LookUp

Returns

T | null

Defined in

submodules/univer/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactHooks.d.ts:5

useDependency(id, quantity, lookUp)

function useDependency<T>(
   id, 
   quantity, 
   lookUp?): T

Type Parameters

Type Parameter
T

Parameters

ParameterType
idDependencyIdentifier<T>
quantityREQUIRED
lookUp?LookUp

Returns

T

Defined in

submodules/univer/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactHooks.d.ts:6

useDependency(id, quantity, lookUp)

function useDependency<T>(
   id, 
   quantity, 
   lookUp?): T | T[] | null

Type Parameters

Type Parameter
T

Parameters

ParameterType
idDependencyIdentifier<T>
quantityQuantity
lookUp?LookUp

Returns

T | T[] | null

Defined in

submodules/univer/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactHooks.d.ts:7

useDependency(id, quantity, lookUp)

function useDependency<T>(
   id, 
   quantity?, 
   lookUp?): T | T[] | null

Type Parameters

Type Parameter
T

Parameters

ParameterType
idDependencyIdentifier<T>
quantity?Quantity
lookUp?LookUp

Returns

T | T[] | null

Defined in

submodules/univer/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactHooks.d.ts:8


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.