TanStackT
TanStack10mo ago
20 replies
rubber-blue

How do I pass context to the router in TanStack Start?

Hey ya'll! Quick question about TanStack Start - Is it possible to pass context to the router?

With TanStack Router, I can use RouterProvider to pass an AuthContext, for example, but in TanStack Start I have to use StartClient which doesn't give me a way to "provide" any context.

It feels like I'm missing some key understanding about how the full stack version of TanStack differs from the client-first version...
Was this page helpful?