-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global styles not applied until page refresh #885
Comments
Not exactly sure about how this happens. So, try to move your styles to a common layout. |
@arunoda actually we've seen this before. using styled-jsx inside of |
I fixed with <style /> thankyou @timneutkens but I have a question. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
When applying global styles to a custom document the styles are not applied until you refresh the page, example:
index.js
If you close your localhost tab,
npm run dev
, then open up a fresh tab you will get this:If you refresh the page you get this:
This also happens when you serve a production build of the project.
The text was updated successfully, but these errors were encountered: