2 million requests from one tab
You left your dashboard open overnight. Your database usage page shows 2 million requests from a single browser.
This answers: Why is my useEffect fetching in an infinite loop? No coding needed. 2 quick decisions.
- Costs and abuse
- Debugging without panic
Checking your access…
Why is my useEffect fetching in an infinite loop?
The effect changes one of its own dependencies, for example setting a state object it depends on, so every run triggers another run. Remove the self-update, depend only on values that really change, and watch the for repeating requests. Select only the columns you display to reduce .
Breaks at Browser: Effect re-runs itself forever
How it works
| Day | People | Bots |
|---|---|---|
| Mon | 180 | 260 |
| Tue | 210 | 300 |
| Wed | 160 | 9400 |
| Thu | 190 | 12100 |
| Fri | 230 | 14800 |
| Sat | 120 | 13300 |
| Sun | 110 | 11900 |
Why AI tools write this bug
Generated components often add 'refresh' state updates inside effects, which is invisible until a page is left open.
How to fix it
- Open the and look for repeating requests.
3 more steps, and a prompt that checks your own app for this bug. Part of Pro.
UnlockCommon questions
- What is egress?
- Data sent out of your database or storage. Many providers bill for it per gigabyte.