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
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!0 Replies