Replies: 1 comment
-
|
update |
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.
-
I'm having an issue with TanStack Router where my locale route's loader is being triggered on auth routes like /auth/sign-in, causing unwanted API calls and 401 errors
Current structure:
Route file: {$locale}/route.tsx
Auth routes: (authentication)/auth/sign-in.tsx
Expected behavior:
/en or /tr should run the locale loader and fetch menus
/auth/sign-in should NOT run the locale loader
What I've tried:
Changed from {-$locale} to {$locale} to make it non-optionals
Put auth routes in a separate (authentication) directory
What am I missing? How do I properly configure TanStack Router to prevent the locale loader from running on auth routes?
Beta Was this translation helpful? Give feedback.
All reactions