Replies: 1 comment
-
still looking for best practice, here is my examples: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I already tried out tan stack router a long time ago, but now I came back to it and it now supports file based routing really cool. I take a look at the kitchen sink example also using tanstack query, but I'm not really getting how I would implement auth and their state management. The kitchen sink example just uses an object which is not the react way. I hope someone can point me into the right direction showing how to use e.g. react context, sod, ...for storing the API token, ... .
And secondly I'm not getting how I would implement a router where basically every page except the login page is behind the authenticated area.
I would really appreciate it if somehone could show/link me some examples showing the described things.
Lukas
Beta Was this translation helpful? Give feedback.
All reactions