Is there a way to persist the shared parent layout if you navigate between components that simply use a parent layout:
<script>
import AppLayout from '@/Layouts/AppLayout';
export default {
layout: AppLayout
};
</script>
And then navigate to another page which has the same parent layout, but a child layout nested in the parent? Right now I'm seeing the parent gets re-mounted when switching back and forth with just the parent, or the child & parent nested.
<script>
import AppLayout from '@/Layouts/AppLayout';
import ProjectLayout from '@/Layouts/ProjectLayout';
export default {
layout: [ProjectLayout, AppLayout]
};
</script>
The layouts persist when switching between parent only, or nested pages. But switching between parent only and nested will cause the parent to remount.
Thanks in advance 🙂