Next.js Discord

Discord Forum

Duplicate API calls from static route after revalidateTag call

Unanswered
Tramp ant posted this in #help-forum
Open in Discord
Avatar
Tramp antOP
Inside a static route I have a server component with a fetch function set to revalidate on demand.

After calling the revalidateTag I noticed that the server renders the whole route twice. Including all fetch functions. I know a route wide re-render is expected but twice feels wasteful.

Only happens with static routes.

Is this expected behaviour somehow?

2 Replies

Avatar
Tramp antOP
Anyone know of the server side process of revalidating and re-rendering static routes when in prod?
Avatar
Tramp antOP
up