TanStackT
TanStack4mo ago
11 replies
dramatic-maroon

[Solved] SEO using routerWithQueryClient()

Hi all, using Tanstack Start for a small project and wanted to know if a situation is possible

Considerations:
- I'm using routerWithQueryClient() in the project
- I can currently go to a dynamic route page with skeleton loader and then data loads

Requirement:
For SEO purposes I wish to add tags in the head part of createFileRoute. The problem is when I do any async work in the head the application will wait for data load before the page is shown (basically app doesn't feel snappy, nor does any loader skeleton shows).

Summarizing above: Is it possible to add seo tags in the createFileRoute while still allowing deferred data loading?

Thanks!
[code example attatched]
exampleCode.png
Was this page helpful?