Function: useUpdateEffect()
function useUpdateEffect(effect, deps?): void
Defined in: submodules/univer/packages/ui/src/components/hooks/update-effect.ts:19
Accepts a function that contains imperative, possibly effectful code.
Parameters
Parameter | Type | Description |
---|---|---|
effect | EffectCallback | Imperative function that can return a cleanup function |
deps ? | DependencyList | If present, effect will only activate if the values in the list change. |
Returns
void
Version
16.8.0