Next.js Discord

Discord Forum

Too much network request

Answered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
I have a Next js app, and it has too much request on the backgraound. I don't reload it but when I check the Network tab in the browser it continuously adds up. Is this normal? How to fix this?
Please see the screenshot, it has almost 400 requests in idle state.

I am using graphql-request and graphql to fetch data
Answered by tafutada777
interesting. check useeffect dependency. locate network request.
View full answer

5 Replies

what are these requests?
interesting. check useeffect dependency. locate network request.
Answer
Northeast Congo LionOP
Fix it, apparently it was the useEffect hook.
do you work for twitter by any chances the other day twitter also ddos'd themselves with something like that
ha!