Open chapus opened 1 month ago
Ok, let me check.
I was able to replicate this case. I have three different layouts in my application, in the app.vue file if I leave NuxtSnackbar inside NuxtLayout when the layout is changed they stop appearing. But if I leave NuxtSnackbar outside of NuxtLayout they always appear.
app.vue
with strange behaviour
<div>
<NuxtLayout>
<NuxtLoadingIndicator color="#79A0D0" />
<NuxtPage />
<NuxtSnackbar />
</NuxtLayout>
</div>
</template>
app.vue
working
<div>
<NuxtLayout>
<NuxtLoadingIndicator color="#79A0D0" />
<NuxtPage />
</NuxtLayout>
<NuxtSnackbar />
</div>
</template>
And looking the DOM inside dev tools, i see when render new DOM with NuxtSnackbar inside NuxtLayout it renders again and thats the moment where the messages do not appear on browser window. But outside NuxtLayout do not rerender the element and it works.
Describe the bug When I start the application in development mode or in production mode, when I enter it for the first time, the snackbar does not appear on the screen. If I refresh the page, it works correctly.
when I run pnpm run dev, i see a VUE WARN about nuxtsnackbar module.
Maybe the warning is something about this: https://vuejs.org/guide/components/attrs#disabling-attribute-inheritance
Desktop (please complete the following information):
Additional context SSR logs