Live data from Hacker News

Next.js Layouts RFC: Nested routes and layouts, designed for Server Components

nextjs.org

1–10 of 123 posts

Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components

#3
We're irrationally excited about this internally and we're super happy with how the Vercel team has continued to push Next.js forward. Thank you!

We're using a version of the persistent layout pattern Adam Wathan [blogged about](https://adamwathan.me/2019/10/17/persistent-layout-patterns-...) but having first-class support for this paradigm will be awesome.

Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components

#4
post #2

Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.

Excited to try this out in my next project :)

Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components

#5
post #2

Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.

Excited to try this out in my next project :)

Open to any feedback you have – we've already started work on the implementation, and will adjust as necessary based on the RFC discussion.

Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components

#6

We're irrationally excited about this internally and we're super happy with how the Vercel team has continued to push Next.js forward. Thank you! We're using a version of the persistent layout pattern Adam Wathan [blogged about]( https://adamwathan.me/2019/10/17/persistent-layout-patterns-... ) but having first-class support for this paradigm will be awesome.

Thank you! We've added documentation[1] on the current layouts solutions, which is similar to Adam's post. It's a good workaround, but I'm very excited for improving the developer experience here.

[1]: https://nextjs.org/docs/basic-features/layouts

Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components

#8
post #2

Lee from Vercel, happy to answer questions about the RFC or future plans for Next.js. This RFC has been years in the making – and I'm pretty happy with where we've landed.

Not seeing it in the article, but how are you handling `index` routing in the `app` folder? If you are putting it in the top directory (e.g. `/app/index.js`), is it not able to get a custom `layout.js` file (as that position is used for the global variant)?

If it's in an `index` folder (e.g. `/app/index/page.js`), how would one create a route for `example.com/index`?

Post reply on HN