Seitu
Core

Debounced Fn

Debounced callable that is also a subscribable.

createDebouncedFn()

Debounced callable that is also a subscribable. Each call resets the timer; the return value becomes the current state.

Examples

import {  } from 'seitu'

const  = ((: string) => (`/api?q=${}`), 300)
.( => .('result:', ))
('hello') // debounced — fires after 300ms of inactivity
.()
.()
.()

Edit on GitHub

Last updated on

On this page