How to prevent specific compontent to not be rerendered on page request #557
-
I use Laravel+Vue3+Inertia and have a simple vertical navbar on the left of my page. Is there a way to prevent my navbar component or specific components to be rerendered an a certain page request? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, You'll probably want to use the persistent layouts feature. This feature essentially involves telling both pages to use the same 'parent' layout. When used, Inertia will automatically keep the layout mounted when navigating between (different) pages, assuming that both pages share/use that same layout. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi,
You'll probably want to use the persistent layouts feature. This feature essentially involves telling both pages to use the same 'parent' layout. When used, Inertia will automatically keep the layout mounted when navigating between (different) pages, assuming that both pages share/use that same layout.
Hope this helps!