useDebouncedEffect

A React Hook like React.useEffect, but debounced.

Demo

Quickly click the button below, you will see the effect is debounced.

Source
Count:
0
wait:
300

Usage

See API for more details.

Source

Click links below to view source on GitHub.

API

useDebouncedEffect(callback, deps, options)

Callback

Same as React.useEffect.

Deps

Same as React.useEffect.

Options

See Options of useDebouncedFn.