SSG pages refreshing layout
Unanswered
Palomino posted this in #help-forum
PalominoOP
Hello,I am currently working on a project where we are using Prismic to generate static pages, with a mix of ISR (Incremental Static Regeneration) and SSG (Static Site Generation) pages.I've noticed an issue with the SSG pages: when navigating between two SSG pages (e.g., from Page A to Page B), the entire layout refreshes. In contrast, when navigating between two ISR pages (e.g., from Page C to Page D), the layout does not refresh.This behavior is particularly problematic for our menu, which has a close animation when a link is clicked. With ISR pages, this animation executes correctly since the layout remains intact. However, with SSG pages, the animation does not trigger because the entire page is reloaded, and the layout is refreshed.Is this layout refresh expected behavior for SSG pages, or is there a way to prevent it to ensure the animations execute as intended?
Nextjs V14.2
Prismic as CMS
APP router
getStaticParams in SSG pages
Nextjs V14.2
Prismic as CMS
APP router
getStaticParams in SSG pages