Return to Sky UI homepage

useThrottle

import { useThrottle } from '@sky-uk/ui-core';

The useThrottle hook can be used to return a value at regular intervals during the execution of a repeated action. Throttle is most suitably used for continuous user events such as resizing or scrolling.

Options

limit

The limit option can be set in ms. This option is defaulted to 500ms.