5 ms·
I like the way this works, it feels inspired by SvelteKit's __layout.svelte files and I think it's just very intuitive to work with. Edit: welp, seems i glance
by gliiics 4y ago
I like the way this works, it feels inspired by SvelteKit's __layout.svelte files and I think it's just very intuitive to work with.
Edit: welp, seems i glanced over too quickly, it's literally written there:
> The layout.js file convention was inspired by the work done in SvelteKit
- nsonha 4y agowhy do I remember that nextjs always has had layout. Only worked with it briefly 2 years ago.
- mcintyre1994 4y agoIt’s always (or at least for a long time) had a layout, where you can define components that your page fits into. It’s really nice for putting a login status in a navbar, or something like toast notifications, because the layout components don’t get replaced when you navigate client-side. But it’s not nested currently, you only get one layout - so if you want some pages to have a sidebar or something then you’re not getting the benefit of the layout system for that.