T
TanStack3mo ago
correct-apricot

Do I need a start, or is just router enough?

Hi all! I’m planning my next web app (a spare-time project). I enjoy working with SPAs because they’re straightforward and avoid unnecessary complexity. The app is behind a login, so I don’t need SEO. I’m wondering: do I need start, or is using just router enough? Could start offer other benefits, like server caching or performance improvements? I’d prefer to keep the frontend clean and focused, without adding the complexity of a full-stack app unless it’s really worth it. Thanks!
7 Replies
fascinating-indigo
fascinating-indigo3mo ago
do you have a separate backend? if you don't need SSR nor a backend I would go with just router
correct-apricot
correct-apricotOP3mo ago
Thanks! I’ll be creating my own backend, DB and all. Not sure if this is a common dilemma, but maybe it’s worth adding to the docs or FAQ?
rising-crimson
rising-crimson2mo ago
Same thing here I will be switching a pet project of mine from Starr to Router, simply because i need PWA support. SPA's just makes Building Frontend Applications so simple
correct-apricot
correct-apricotOP2mo ago
Not sure if we could just use Tanstack Start and set ssr to false, wouls the end result be the same - SPA?
correct-apricot
correct-apricotOP2mo ago
Static Prerendering | TanStack Start React Docs
Static prerendering is the process of generating static HTML files for your application. This can be useful for either improving the performance of your application, as it allows you to serve pre-rend...
correct-apricot
correct-apricotOP2mo ago
can't get it to work, even this file is quite mysterious app.config.js found some info https://discord.com/channels/719702312431386674/1277494081744011347
xenial-black
xenial-black2mo ago
Newbie to this server! I came here exactly for this Q&A. I feel like Start is overkill for an SPA if you already have auth / db / backend all done as separately. IMO the Home starting page should be more clear about that in the: https://tanstack.com/start/latest/docs/framework/react/overview#router-or-start section. Thanks for your info though!

Did you find this page helpful?