Replies: 1 comment 1 reply
-
can you please provide a complete example, ideally by forking one of the router examples on stackblitz? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hey, all. I'm trying to figure out which of the many features that tanstack router offers is best for handling default search params - i.e., ensure that there always is an
account
query param, if not, redirect to login.I looked into middleware (which is actually from tanstack start) and search params in the root component but none of these seem the right place. I have a route that wraps all authenticated routes and in it's
beforeLoad
I load the user's accounts and if there are none, I redirect to/login
but not sure how to set the params from there.Any clues?
Beta Was this translation helpful? Give feedback.
All reactions