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...
Brian Rinaldi is a Developer Experience Engineer at LaunchDarkly with over 20 years experience as a developer for the web. Brian is active in the community running CFE.dev and Orlando Devs.
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...
Thanks Shane. Great advice.