Next.js Discord

Discord Forum

Too much network request

Answered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Avatar
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
Image
Answered by tafutada777
interesting. check useeffect dependency. locate network request.
View full answer

5 Replies

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