-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Sub pages? (for rendering partials and child routes) #75
Comments
try to create a components folder and place your items inside |
related: #50 |
@dlindenkreuz @nodegin I believe you may have misinterpreted my question. What I'm asking for is not how to split components out, but rather how I can avoid adding the same components to every single page if they are shared layout elements, such as a page's navigation bar, footer, etc. I've implemented the following example of a workaround I have for now and pushed it here: https://github.com/mmmeff/nextjs-page-template-example It also shows how you can apply a CSS reset across your entire application without needing to |
@dlindenkreuz Yup! A top-level component would solve many issues at once with Next - it seems to be a fairly severe limitation in the framework at the moment, of which the impact is only marginally mitigated by the inclusion of |
For reference to those who find this issue:
|
@rauchg this can't be solved if the layout is is remounted with every navigation right? That can't be an acceptable solution to this problem. Unless I'm missing something. How can the layouts ensure only the child components are remounted, keeping the layout intact? |
@krazyjakee here's my guess. |
Is there currently any way to render partials? For example, how would one go about adding a component to the application without having to tack it onto each and every file in the pages directory?
The text was updated successfully, but these errors were encountered: