Introduction

Debounce is a function that delay events until the events has stopped for a predetermined amount of time. This prevents your UI code from needing to process every event. It could be some user input for a filter.

The default delay time is 300ms.

Import

import {debounce} from "lib/utils/debounce";

Input delay