I need help to review my breadcrumb component
Unanswered
Yacare Caiman posted this in #help-forum
Yacare CaimanOP
Hi, I creating a custom breadcrumb which disable Link when the route is not found.
Example: I have two route is
My method is to get
This is my code: https://codesandbox.io/p/devbox/sweet-morning-pl7nmp
Please try route
Example: I have two route is
/dashboard ans /dashboard/temp. In route /dashboard, I don't create page.tsx then this route will be 404. So on breadcrumb Home > Dashboard > Temp, the dashboard is unclickableMy method is to get
segments from useSelectedLayoutSegments() then send these segments to Server Actions, then use fs to check is there any page.tsx file that exists in those combined segments. Is that valid? I wonder if using Route Handler or Server Actions is suitable in this case.This is my code: https://codesandbox.io/p/devbox/sweet-morning-pl7nmp
Please try route
/dashboard/temp to check the breadcrumb1 Reply
Yacare CaimanOP