useUpdateEffect

Like useEffect, but skips the effect on initial mount and only runs on updates.

Works like React.useEffect, but skips execution on the initial mount, only running when dependencies change on subsequent renders.

Import#

import { useUpdateEffect } from '@volue/wave-react';

Example#


API Reference#

Arguments#

Prop
Type
Default
effect*
EffectCallback
deps
DependencyList

Returns#

void