TanStackT
TanStack12mo ago
8 replies
extreme-purple

Looking for a Meta module like Remix/ReactRouter7 for dynamic titles and such

Is Start going to include some kind of Meta function so that we can dynamically set page titles dynamically, either with something set statically in the route or dynamically with vars from a database call? I found soneone else here wrote their own hook which is great. But I'm hoping for a native function. TanStack Router has some bits under https://tanstack.com/router/latest/docs/framework/react/guide/router-context#processing-accumulated-route-context but I'm not sure how to wire it into what Start does for the head section.
TanStack Router's router context is a very powerful tool that can be used for dependency injection among many other things. Aptly named, the router context is passed through the router and down throug...
Router Context | TanStack Router React Docs
Was this page helpful?