You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I am trying to move from tanstack router to tanstack start but I very quickly came across a roadblock on how to inject authentication (which was recived with a hook) into the routers context
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello I am trying to move from tanstack router to tanstack start but I very quickly came across a roadblock on how to inject authentication (which was recived with a hook) into the routers context
e.g this is how I would have done it in tanstack router
https://github.com/nekochan0122/tanstack-authentication/blob/main/csr-basic-auth/src/app.tsx#L19
With tanstack start I want some way to also wrap the client in some provider that calls a react hook
I attempted something like this
But then I realized that would cause issues with the SSR side as thats abstracted away in some
I think i might be missing a bit point here, I cant seem to fully wrap around how this framework works, any advice would be helpful
Beta Was this translation helpful? Give feedback.
All reactions