useDidUpdate

useDidUpdate Hook executed when the component updates its dependencies.
Import
import { useDidUpdate } from '@kubed/hooks;'
Source
View source code
Docs
Edit this page
npm
@kubed/hooks

Usage

useDidUpdate is identical to useEffect except that it ignores the first execution and only executes when dependencies are updated.

API

1
function useDidUpdate(
2
fn: () => void,
3
dependencies?: any[]): void