parallel routing
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
i just got started with next.js i was learing about paralle routing what i wanted to test was a nested route inside a slot.this is the structire not the project. i dont know but i doont seem to access parallel/nested i am getting 404 error can anyone help
9 Replies
Transvaal lionOP
can anyone help?
try adding a default.tsx
export default function Default() {
return null
}
export default function Default() {
return null
}
Transvaal lionOP
yeah but the problem i i would love to access the nested route inside the @slot 1 but i am unable to
default will shows a fallback i want the actual component being rendered😅
you need a fallback to render for unmatched slots,
with the default, you telling next to render
slot1/nested and slot2/page
with the default, you telling next to render
slot1/nested and slot2/page
Transvaal lionOP
so in this case i would have a default in slot2 as slot 2 doesnot have the nesetd route
you can have the default.jsx in every slot, or in paralell folder, it will find the closer one
Transvaal lionOP
yeah i solved it but i amhaving trouble with modal can someone help me out
can you mark it as solved?
and what problem u have with modal
and what problem u have with modal