@univerjs/ui v0.5.4


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

ParameterTypeDescription
effectEffectCallbackImperative function that can return a cleanup function
deps?DependencyListIf present, effect will only activate if the values in the list change.

Returns

void

Version

16.8.0

See

https://react.dev/reference/react/useEffect