Parallel routes with template.tsx
Unanswered
Tonkinese posted this in #help-forum
TonkineseOP
I had successful implemented parallel routes, so my nested layout.tsx file is receiving 2 slots - children, and "modal".
But when i change the file from layout to template, it stops receiving the modal slot (it still receives the children)
Isn't it possible to use template.tsx with parallel routes?
But when i change the file from layout to template, it stops receiving the modal slot (it still receives the children)
Isn't it possible to use template.tsx with parallel routes?
2 Replies
@Tonkinese I had successful implemented parallel routes, so my nested layout.tsx file is receiving 2 slots - children, and "modal".
But when i change the file from layout to template, it stops receiving the modal slot (it still receives the children)
Isn't it possible to use template.tsx with parallel routes?
I don’t think “template.js†can handle parallel routes.
“Unlike layouts that persist across routes and maintain stateâ€
https://nextjs.org/docs/app/api-reference/file-conventions/template
“Unlike layouts that persist across routes and maintain stateâ€
https://nextjs.org/docs/app/api-reference/file-conventions/template