TanStackT
TanStack8mo ago
25 replies
correct-teal

How do stop pre-fetch ALL components?

When accessing http://localhost:3000/ and inspecting the network tab in dev tools, there are a lot of requests all the js file
For example,
http://localhost:3000/js/components/category/CategoryView.jsx
http://localhost:3000/js/components/cms/banner/routes.ts
...another thousands requests

It literally pre-fetch all components of the whole project. Is there a way to stop this? Here is the .cta file
{
  "framework": "react",
  "typescript": true,
  "projectName": "myapp",
  "mode": "code-router",
  "tailwind": true,
  "packageManager": "npm",
  "toolchain": "biome",
  "variableValues": {},
  "git": true,
  "version": 1,
  "existingAddOns": []
}
Was this page helpful?