Currently, layout state is reset each time we click from page to page. This is because every page component includes the Layout as part of its template. As such, when you visit a new page, that component, including the layout, is destroyed. If you instead want state from your layouts to persist across pages - such as for a podcast that continues playing as your browse the site - we'll need to review persistent layouts.
Watch this full series, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: https://laracasts.com
Build Modern Laravel Apps Using Inertia.js: https://laracasts.com/series/build-mo...
Laracasts Twitter: / laracasts
Jeffrey Way Twitter: / jeffrey_way
Watch video Build Modern Laravel Apps Using Inertia.js - Ep 12, Persistent Layouts online without registration, duration hours minute second in high quality. This video was added by user Laracasts 25 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 11,14 once and liked it 16 people.