Tanstack Router Context
I’m trying to use the router context but I keep on missing.
I’ve got it either set up incorrectly or something is going on.
Using the main.tsx file I render the RouterProvider where I also create the router with a context key as empty.
But at some point I would like to make a api call that fetches some data that I would lime to store into the router context so that I have it available on every child route in the beforeLoad hook.
Is there a example where this is shown in more detail?
Because I’m trying the docs way to update the context in the loader but with no luck.