T
TanStack4mo ago
stormy-gold

Is Tanstack Start good for apps not using tanstack router?

Hi. This is a highly opinionated question but it's be nice to reflect with someone on this Some websites may get all of their routing through a CMS, and my understanding is that to make it work in tanstack start you need to use a catchall/slug route (For example of a CMS https://docs.developers.optimizely.com/content-management-system/v11.0.0-cms/docs/content-tree-and-routing) By doing this the developer is effectively not using the router or it's type safe properties Not to say tanstack start is "just" a router, it has server functions and integrations with other tanstack libraries of course, but the router is a big part of it Anyone got any thoughts?
2 Replies
rising-crimson
rising-crimson4mo ago
I think to achieve this u can have a route like /blog/:slug where slug can be anything from cms? hope I help even a bit
other-emerald
other-emerald3mo ago
I am builidng a starte to use Strapi Headles CMS and TanStackStart you can find the repo here as an example. https://github.com/PaulBratslavsky/strapi-tanstack-start-starter Here is how I am handling articles with slug. https://github.com/PaulBratslavsky/strapi-tanstack-start-starter/tree/main/client/src/routes/articles
GitHub
GitHub - PaulBratslavsky/strapi-tanstack-start-starter
Contribute to PaulBratslavsky/strapi-tanstack-start-starter development by creating an account on GitHub.
GitHub
strapi-tanstack-start-starter/client/src/routes/articles at main ·...
Contribute to PaulBratslavsky/strapi-tanstack-start-starter development by creating an account on GitHub.

Did you find this page helpful?