Emanuele
Emanuele
NNuxt
Created by Emanuele on 2/8/2023 in #❓・help
White flash on layout slot change
I have a default layout that consists on navbar, sidebar and main content. Sidebar has a slot (named "sidebar"). When im inside a specific page, let's say users/[userId] i want the sidebar content and style to change. What i did was to set NuxtLayout="default" and then inside a #template="sidebar" put my new UserSidebar, setting also
definePageMeta({
layout: false
})
definePageMeta({
layout: false
})
What happens is that when i click to go on a user detail (that leads me to the new page with the different sidebar content), i have a blank page flashing up before everything is rendered. I was wondering if this is normal and how to avoid it. Thanks in advance!
1 replies