> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# react-unthrottled-input-fetch

> A text input change handler calls fetch directly, so every keystroke sends a request.

## What it flags

An `onChange` or `onInput` handler on a JSX `<textarea>` or text-like `<input>` (no `type`, or `text`, `search`, `email`, `url`, `tel`, `number` or `password`) that calls the global `fetch()` itself. The handler can be inline, a function declared in the same file, or a `useCallback` callback. Typing a word sends one request per character, multiplying the load on the endpoint, and the responses can arrive out of order.

A `fetch()` inside a timer or another nested callback is not reported, because it no longer runs per keystroke. Neither are checkboxes, radios and other inputs that change once per deliberate action, other events such as `onBlur`, handlers passed to custom components, elements with spread attributes, and handlers that read `Date.now()`, `performance.now()` or `event.timeStamp`, which is how a hand-written rate limit looks.

## How to review or fix

Debounce the request (about 300 ms is common), or keep the text in state and fetch from an effect that aborts the previous request with an `AbortController`.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "react-unthrottled-input-fetch": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.