FRONT009infoPro

eager-queries-no-defer

3+ query hooks all firing on mount with no deferred loading.

Applies to: JavaScript, TypeScript

Why this matters

When a component has 3 or more useQuery/tRPC query hooks that all fire immediately on mount, it floods the network with parallel requests — even for data the user hasn't scrolled to or interacted with yet. Use the `enabled` option to defer non-critical queries until their data is needed.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, FRONT009 includedstablestack explain FRONT009

FRONT009 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: FRONT009