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

feat: add persistent app layouts to template #245

Closed
wants to merge 1 commit into from

Conversation

mcavaliere
Copy link

@mcavaliere mcavaliere commented Jan 18, 2022

Fix #242

Changes

Sets _app.tsx up to render a getLayout function for any page (or component) if it exists. This allows faster navigation between pages, since layouts that are the same between pages will not be re-rendered (since their element subtrees are the same).

References:

Also includes:

  • References shared footer component in logged in / logged out layouts
  • Makes nav links consistently use next/link around the Chakra Link component
  • Adds 3 placeholder pages for the default nav links

Screenshots

(prefer animated gif)

Checklist

  • Requires dependency update?
  • Generating a new app works

Fixes #xxx

@mthomps4
Copy link
Contributor

We should revisit this PR with the new Layout features dropping

@mthomps4
Copy link
Contributor

mthomps4 commented Nov 4, 2022

Almost a year old -- closing

@mthomps4 mthomps4 closed this Nov 4, 2022
@mcavaliere
Copy link
Author

😢

@mthomps4
Copy link
Contributor

mthomps4 commented Nov 4, 2022

😢

Can re-open with new Next stuff

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

Successfully merging this pull request may close these issues.

Persistent layouts by default
2 participants