tayv / Project-Bubblegum

React UI + controlled form components
https://bubblegumui.vercel.app
2 stars 0 forks source link

Performance: SideNav slow loading #23

Open tayv opened 1 year ago

tayv commented 1 year ago

Overview:

The SideNav component is used for layout within LayoutContainerSide. It receives an articleList prop that it maps through to render the list of articles in the side navigation and apply the appropriate css styling. The current article page is highlighted.

The Problem:

asherccohen commented 1 year ago

I'm not sure about the performance but if I remember correctly Layouts in Next.js need a different setup to be shared across pages or across nested routes.

Otherwise they will re-render just like every other component.

See here:

https://nextjs.org/docs/basic-features/layouts