T
TanStack9mo ago
adverse-sapphire

Do I have to use .lazy to code split in tanstack/start or does it do it automatically?

Does tanstack start automatically code split my routes or do I have to use .lazy? Even using static prerendering export?
3 Replies
foreign-sapphire
foreign-sapphire9mo ago
automatically no need to use lazy
adverse-sapphire
adverse-sapphireOP9mo ago
so the .lazy is just if you're doing SPA with tanstack/router?
foreign-sapphire
foreign-sapphire9mo ago
yes but also there you can enable automatic code splitting (which start has enabled by default)

Did you find this page helpful?