@univerjscorefunctionsUsedependency

@univerjs/core v0.5.0-beta.1Docs


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

packages/api/tmp/univer-pro/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

packages/api/tmp/univer-pro/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

packages/api/tmp/univer-pro/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

packages/api/tmp/univer-pro/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

packages/api/tmp/univer-pro/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

packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactHooks.d.ts:8