Simple

This is the simplest way to preserve state when navigating between pages using the same layout.

No layout hierarchy or data fetching features are used.

Page2

Page2