Next.js Discord

Discord Forum

Dynamic page constantly refetches data

Answered
Daggertooth pike conger posted this in #help-forum
Open in Discord
Daggertooth pike congerOP
Hi guys,

All fetch requests in async server components refetch the data with a 1 second interval, with no user input (dev-mode). I reverted my repository changes back to a previous commit, where I found this issue does not occur. None of the post-working-commit installed dependencies should have anything to do with the issue. I could not find any code changes that would cause this.

I have a feeling this could possibly have to do with pre-fetching <Link/> components maybe? Will provide more info if necessary, huge thanks to anyone offering their insight!

3 Replies

Daggertooth pike congerOP
Daggertooth pike congerOP
The page content is conditionally shown based on authed user role using parallel routes. Removing this parallel route fixed the issue.
Daggertooth pike congerOP
Answer