DEV Community

Discussion on: Baby Steps with Next.js for JAMstack

Collapse
 
shanemlk profile image
Shane Kunz

You’re layout config setup code looks good. But it got me thinking, you’re re-rendering the layout every time you switch pages. This probably is harder to notice for smaller apps, but you’ll probably want to avoid it if possible. Here’s an article I found with some good solutions: adamwathan.me/2019/10/17/persisten...

Collapse
 
remotesynth profile image
Brian Rinaldi

Thanks Shane. Great advice.