#TIL disable Next.JS prefetching when you point to route.js

You have to disable prefetching in <Link> component, when you point to the route created by route.js or route.ts.

#TIL disable Next.JS prefetching when you point to route.js

I learned it (almost) hard way — you have to disable prefetching[1] in component, when you point to the route created by route.js or route.ts.

If you won't disable prefetching, you can delete your content, if the route is coded to do so.


  1. [https://nextjs.org/docs/app/api-reference/components/link#prefetch](<Link> prefetch documentation) ↩︎