-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Milestone
Description
FOUC with css-modules while using "next/dynamic"
Describe the bug
While using components with css-modules, if they are wrapped in "next/dynamic", they are unstyled until full hydration.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Get this demo - https://github.com/khades/next-dynamic-css
- Install its dependencies
- Build it.
- Run it. (Its more obvious in production mode).
- Set browser in "Slow 3G throttling mode".
- Open http://localhost:3000
Expected behavior
Either proper .css stylesheet comes in or whole page is not displayed unless all dynamic components are hydrated and styled.
sbekrin, julius-retzer, wongmjane, bulutfatih, pvdlg and 6 more
Metadata
Metadata
Assignees
Labels
No labels