Noobkun
TTCTheo's Typesafe Cult
•Created by Noobkun on 6/3/2023 in #questions
Strange network activity in devtools
Hi I'm learning t3 stack with this project (https://github.com/t3dotgg/chirp)
I noticed a strange behavior on the live Chirp project page (https://xn--uo8h.t3.gg/)
A network request is being made everytime I click somewhere in the devtools then back on the page.
Steps to reproduce:
- Go to the live project page and open the devtools' network tab
- Refresh the page and wait 3s for it to load everything
- Click anywhere on the page (notice a trpc request is made to posts.getAll)
- Click anywhere in the devtools, then back on the page (notice the same request is made again)
This happen also when I alt-tab away then back to the browser, or when I switch browser tabs.
I tried in chrome and firefox, it's the same.
So my question is why does it do that? And how can I prevent it?
5 replies