Skip to content

RateLimit

type RateLimit =
| {
method: "throttle";
timeMs: number;
}
| {
method: "debounce";
timeMs: number;
};

Defined in: tanstack/core/rate-limit.ts:9

Rate limiting for URL commits.

Hook state always updates synchronously; only the write to the URL (and any downstream router navigation) is rate-limited. This mirrors nuqs: returned state is instant, URL commits are throttled/debounced.