Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use common Layout for NextJS #250

Open
ThePhisch opened this issue Jul 18, 2023 · 0 comments
Open

Use common Layout for NextJS #250

ThePhisch opened this issue Jul 18, 2023 · 0 comments
Assignees

Comments

@ThePhisch
Copy link
Contributor

NextJS has support for common layouts, as opposed to our current setup of having a layout.tsx in each folder of src/app/{pagename}, in which the layout page is essentially unchanged each time.

Besides having a better folder structure and fewer redundant files (we could even rework the entire routing system this way), the benefit is that the Layout component can then keep its state, even when switching routes.

Helpful material: https://nextjs.org/docs/pages/building-your-application/routing/pages-and-layouts

@ThePhisch ThePhisch self-assigned this Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant