TanStackT
TanStack2y ago
3 replies
clean-aquamarine

Meta Prop For Title

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.
image.png
image.png
image.png
image.png
GitHub
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...
Modifying the Router Context with data from loader · TanStack route...
Was this page helpful?