vite-plugin-stylex icon indicating copy to clipboard operation
vite-plugin-stylex copied to clipboard

SSR/NUXT 3 - Styles get removed

Open I-NOZex opened this issue 6 months ago • 11 comments

With a NUXT SSR app, only the first component registering a style gets to keep it. For some reason, the second component has its styles removed.

Reproduction: https://stackblitz.com/edit/nuxt-3-vite-stylex-x1dwmq?file=components%2Fbtn1.vue,components%2Fbtn2.vue,app.vue you can notice that the second button shows the red border after loading but quickly loses all styles.

Very likely to be related with the rehydratation

I-NOZex avatar Dec 19 '23 16:12 I-NOZex