Duplicate API calls from static route after revalidateTag call
Unanswered
Tramp ant posted this in #help-forum
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?
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
Tramp antOP
Anyone know of the server side process of revalidating and re-rendering static routes when in prod?
Tramp antOP
up