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
flat-fuchsia•11mo ago
there is nothing wrong with that, you can also omit the
component option in the route.tsx file, it will default to Outletoptimistic-goldOP•11mo 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
flat-fuchsia•11mo ago
This depends heavily on your project. I would add a response interceptor to my axios instance.
optimistic-goldOP•11mo ago
I try that
But after that I didn't get any error on the
onError mutations from tanstack queryflat-fuchsia•11mo ago