Inject context to "head" option in createRootRoute
The problem I am facing is that I want to render the meta tag with csrf token: <meta name="csrf_token" value="123" />. The token will be called via an API call in beforeLoad. I dont know how to get that data in "head" option.
This is my current way of doing it but not sure this is the best approach.
0 Replies