Too much network request
Answered
Northeast Congo Lion posted this in #help-forum
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
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.
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.
ha!