primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
8.89k stars 1.1k forks source link

Primevue 4 theme flashing on hard reload (Nuxt 3.11) #5899

Open katerlouis opened 4 weeks ago

katerlouis commented 4 weeks ago

Describe the bug

image image

Reproducer

//

PrimeVue version

4 rc1

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

I expect the theme to be there immediately, just like with PrimeVue 3– is this even possible under the new Theming engine?

mertsincan commented 4 weeks ago

Hello,

Do you use @primevue/nuxt-module?

BoBo-Git commented 3 weeks ago

I have the same problem, and I do use @primevue/nuxt-module. I think it's the timing of the loading of the styles that's causing the problem, but I can't find the way to control the styles loading.

jerryisbusy commented 2 weeks ago

Same problem! Html document render before css loaded. But how can we solve it?

mertsincan commented 5 days ago

Interesting! I couldn't replicate it. Could you please attach a sample project with your config for us to replicate?