Level 29
@russellxu Hi, have you tried this? https://inertiajs.com/links#preserve-state
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to build a admin background page using InertiaJs. whenever I redirect to a different page, the whole page rerendered, but I dont want SideBar component to be rerendered, because the sub-menu is bouncing when the page reloaded, like this:

it's possible to wrap Inertia component in a Layout component? so redirect will not effect Layout component.
Inertia.js documentation show example, explore it: https://inertiajs.com/pages#creating-layouts
Please or to participate in this conversation.