I wanted to have the structure where /tasks shows 2 tabs 'My tasks' and 'All Tasks'. So I can have 2 nested routes /tasks/mytasks and /tasks/alltasks for them. Until here everything works well and the nesting is helping with the layout. However, If I click on a task, I want it to have its own page at /tasks/mytasks/:taskId where the layout is no more there. In order to do this, I should not be adding /tasks/mytasks/:taskId as a nested route right? Since it will render the layout as well which I don't want. So should I be adding /tasks/mytasks/:taskId as another route completely?
#Nested routes
1 messages · Page 1 of 1 (latest)