Skip to main content

useDebounce

The useDebounce hook delays the execution of a value update.

Usage

Installation

import { useDebounce } from "hookstorm";

Example Usage

const debouncedSearch = useDebounce(searchQuery, 500);

Explanation

  • This hook is useful for optimizing API calls by reducing frequent updates.