UNPKG

@anoki/fse-ui

Version:

FSE UI components library

13 lines (12 loc) 293 B
import { useState as r, useEffect as c } from "react"; function i(e, t = 300) { const [u, o] = r(e); return c(() => { const n = setTimeout(() => o(e), t); return () => clearTimeout(n); }, [e, t]), u; } export { i as useDebouncedValue }; //# sourceMappingURL=index.es260.js.map