import BaseLayout from "@/Layouts/BaseLayout.vue"; // Should contain `<slot>`
export const pLayout = (title) => {
return (h, page) => h(BaseLayout, { title }, () => page);
};import {pLayout} from '@/Utils/pLayoutUtil';
// ...
defineOptions({
layout: pLayout('Dashboard'),
});With this, the Inertia/Vue routing will not cause full re-render of the page.