Breadcrumbs and sub-routes
Hi everyone
I'm trying to create breadcrumbs using the Tanstack Router hooks but I'm facing a problem
If my route is:
And set the
title
on the loader
for all the files and using the useMatches
I can't have Admin > Budgets > New
only have Admin > New
. This is my code for the breadcrumbs:
For have Admin > Budgets > New
I need to have:
Anyone can help me? What I'm doing wrong?
5 Replies
rare-sapphire•8mo ago
there is nothing wrong with that, you can also omit the
component
option in the route.tsx
file, it will default to Outlet
extended-salmonOP•8mo ago
Thanks
A quick question, can you share any link about authentication?
I'm searching about how to implement the redirect to the login when the backend send a 401 code
rare-sapphire•8mo ago
This depends heavily on your project. I would add a response interceptor to my axios instance.
extended-salmonOP•8mo ago
I try that
But after that I didn't get any error on the
onError
mutations from tanstack queryrare-sapphire•8mo ago