Large monorepo/Next.js refactor to TSR questions/issues
I have already written codemods that update:
- Link and useRouter usages (+ syntax)
- File route structure
- Adds createFileRoute to each route file + removes default export and sets it as component
+ some other stuff
But I am now trying to get a minimal version working so I can work back from there. However I am running into some questions and issues that I can't really figure out.
1. Is it normal for Vite/TSR to have a very long initial load time for the dev server? It retrieves about 1200 files on the first load. Subsequent isn't so bad because then they are cached.
2. I am using trpc, and any time I comment a trpc query back in, the page just loads forever. No errors in the console, terminal or network tab or anything.