MCPcopy Index your code
hub / github.com/react-hook-form/react-hook-form / debounce

Function debounce

src/logic/createFormControl.ts:206–210  ·  view source on GitHub ↗
(callback: T)

Source from the content-addressed store, hash-verified

204
205 const debounce =
206 <T extends Function>(callback: T) =>
207 (wait: number) => {
208 clearTimeout(timer);
209 timer = setTimeout(callback, wait);
210 };
211
212 const _setValid = async (shouldUpdateValid?: boolean) => {
213 if (_state.keepIsValid) {

Callers 1

shouldRenderByErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…