css-components
css-components copied to clipboard
Ssr fix
Fix server side rendering issue error: cannot dot into client component from server component.
@numito thanks for this - could you share a codepen/minimal reproducible example of the error?
@gg-phntms Of course, bootstrap a next project. You need 2 components:
- a client component using css-components (a component that use useEffect)
- a server component importing the client component
I will try to create a sample project with the issue and send it to you before the end of the week.
This setup will trigger the error.