Replies: 1 comment 2 replies
-
can you make a minimal reproduction ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the client component where you wrote use clinet, you defined the style as css.raw and exported it.
I imported the styles from another server component and merged them, but the imported styles are not applied.
However, if I change the useing component to the client component, it works again.
I've tried defining the styles in a ts file and exporting it and it works fine, so it seems to be a problem with styles created in the client component.
Is it because the client component and server component read the styles at different times?
exported style

/src/component/Header.tsx
imported style

/src/component/HomeOnlyHeader.tsx
Beta Was this translation helpful? Give feedback.
All reactions