TanStackT
TanStack3y ago
4 replies
wet-aqua

Prefetch Query and NextJS SSR

Hi, if I'm prefetching a query in SSR or ISR (in getStaticProps), does the prefetch actually block rendering/navigation? i.e. in the await prefetchQuery call, is the promise resolved when the actual function being executed in the prefetch resolves or does it resolve almost immediately?

I basically want to know if there are any real downsides to prefetching my initial page queries, like if it can affect my initial render time or navigation time when ISR is not cached
Was this page helpful?