Title Not Setting on Document in Meta Route Prop
Does the router automatically set the document title using the Meta prop on a route? I set the title in the meta function, but it's not changing the title on the tab in the browser.
This feature was mentioned here: https://github.com/TanStack/router/discussions/895#discussioncomment-9064913
But looking through the Tanstack website (the screenshot), I couldn't figure out how exactly it works. I'm using this in a SPA, but I'm not sure if that detail matters.
GitHub
Modifying the Router Context with data from loader · TanStack route...
Hi all, is it somehow possible to add information to a Router Context from data fetched in a loader ? For example to build a breadcrumb trail from the contexts (as in the example), it would be help...




7 Replies
inland-turquoise•17mo ago
This is an experimental SSR feature that is currently experiencing a reactor. Sorry!
other-emeraldOP•17mo ago
Ohh that would make sense. Would router context be the way for something like this?
inland-turquoise•17mo ago
You can get this off of the matches
Check out the source for the Meta component in the react router server /client package
other-emeraldOP•17mo ago
oooh that's really good rec
this is way better
inland-turquoise•17mo ago
It’s very accessible data you can do whatever you want with.
Ideally we could export those functions and hooks to build your own
Alright, you should take a peek at the new architecture
inland-turquoise•17mo ago
It uses a split hydration approach I outline in my tweet: https://x.com/tannerlinsley/status/1788238672044978448
Tanner Linsley (@tannerlinsley) on X
A quick post-mortem (albeit there could be more in the future) on the hydration issues I was experiencing with https://t.co/j9kvscZRG8
The most common hydration errors in React come from browser extensions modifying the dom before hydration occurs or from actual mismatches in…
Twitter
inland-turquoise•17mo ago
The SSR examples will likely need to be updated to use this new approach
But also, I am starting to do the abstractions around Vinxi, etc
And moving things to a "Start" namespace
So things could change significantly there