@univerjs/core v0.4.2 • Docs
Function: useDependency()
useDependency(id, lookUp)
function useDependency<T>(id, lookUp?): T
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
id | DependencyIdentifier <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
Parameter | Type |
---|---|
id | DependencyIdentifier <T > |
quantity | MANY |
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
Parameter | Type |
---|---|
id | DependencyIdentifier <T > |
quantity | OPTIONAL |
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
Parameter | Type |
---|---|
id | DependencyIdentifier <T > |
quantity | REQUIRED |
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
Parameter | Type |
---|---|
id | DependencyIdentifier <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:7
useDependency(id, quantity, lookUp)
function useDependency<T>(
id,
quantity?,
lookUp?): T | T[] | null
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
id | DependencyIdentifier <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