No layout

This is default Nextjs behaviour. No state is persisted when navigating between pages using the same layout.

Page2

Page2