T
TanStack11mo ago
sharp-indigo

i18n Route Match

Im debating what would be the best approach for implementing router rules/files to implement the following: - /pt-PT/about - /en-US/about - /fooo-bar The problem im facing is if you set something next to __root.tsx like “$locale.tsx” in a attempt to match a valid locale, and throw a notFound it will indeed render the NotFound component, but no styles are added or anything is done from the __root as it seems Anyone did something similar and could point me in the right direction? Using start btw :p
2 Replies
complex-teal
complex-teal11mo ago
GitHub
Not Found in beforeLoad and Loader does not behave as expected · Is...
Describe the bug As described in the steps below, It looks like the notFound error that can be thrown from beforeLoad or the loader is not properly causing the right route to render their notFound ...
sharp-indigo
sharp-indigoOP11mo ago
Hum, interesting, might be the same issue, in this case its a wildcard router at root level throwing a 404, so yeah might the same. In the docs i dont see examples of this i believe. Just files/$ Yeah, reading a bit the last comment seems like what we got as well :p, a ugly/non-styled page

Did you find this page helpful?