Skip to content
This repository has been archived by the owner on May 14, 2023. It is now read-only.

Introduce a better persistent Layout. #1

Open
hussamkhatib opened this issue Apr 20, 2022 · 1 comment
Open

Introduce a better persistent Layout. #1

hussamkhatib opened this issue Apr 20, 2022 · 1 comment

Comments

@hussamkhatib
Copy link
Owner

https://nextjs.org/docs/basic-features/layouts
This is the current way of handling it.

// _app.tsx
<main className="grid grid-cols-[14rem_1fr]">
        <NavBar />
        {children}
</main>

The problem:
This renders the Navigation bar in pages like 404, 500 and might not be required in certain pages in the future.

@hussamkhatib
Copy link
Owner Author

hussamkhatib commented Aug 10, 2022

Waiting for layout-RFC to be realeased
https://nextjs.org/blog/next-12-2#layouts-rfc--advanced-routing-support

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant