vite-plugin-stylex
vite-plugin-stylex copied to clipboard
SSR/NUXT 3 - Styles get removed
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