Tanstack router for protected route
Hi can someone help me quickly on this problem. I'm trying to implement protected route but I can't do the structure like the image. Do i have to use flat file routing ?




6 Replies
extended-yellow•7mo ago
please share a complete minimal example, ideally by forking an existing router example on stackblitz
rare-sapphireOP•7mo ago
sorry I don't have experience with stackblitz. but if I doing like the image it will work. Can you explain it to me please?

extended-yellow•7mo ago
extended-yellow•7mo ago
then click fork

extended-yellow•7mo ago
apply your changes
save
then paste the new URL here
rare-sapphireOP•7mo ago
thank you for help but currently I'm kinda hurry so I can't provide a minimal example. Maybe I will ask later. Thank you once again