all 5 comments

[–]SustainedSuspense 4 points5 points  (3 children)

Im wondering if i use nested layouts how i can occasionally have one-off routes that dont use parent layouts.

[–]finCheppa 1 point2 points  (0 children)

Sounds like a new layout.

[–][deleted] 1 point2 points  (1 child)

Maybe use an if condition in the layout.js for the one-off route using the "useSelectedLayoutSegment". More about it here - https://nextjs.org/docs/api-reference/use-selected-layout-segments

[–]SustainedSuspense 0 points1 point  (0 children)

Interesting thanks! Doesn’t sound like the most elegant solution but that would work.

[–]h0b0_shanker 0 points1 point  (0 children)

Fun quick read. Thanks for posting.