Next.js Discord

Discord Forum

What is the point of layouts now other than parallel routes?

Unanswered
Sander posted this in #help-forum
Open in Discord
What do you guys tend to use layouts for now?

Considering that throwing a notFound() into a layout doesn't go to the not-found.tsx of that route segment but the parent.
If I want to fetch something that is vital to that page's layout let's say an organisation slug. I want to be able to say: organisation not found. But this can only happen if I throw it in the page...

So what use is layout at this point really other than parallel routes?

0 Replies