You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until today I was using the master branch to work on components. Like in your examples I was using injectGlobal from styled-components to add webfonts, root font size and some base styles for html and body elements.
Today I decided to try the server side rendering branch. I realised that injectGlobal runs on page load. That causes a small glitch in the UI because the browser first displays the page without said styles and then injects them only after first render.
Using a styles.css solves that issue. I was wondering if you have a better solution to that?
The text was updated successfully, but these errors were encountered:
Awesome boilerplate!
Until today I was using the master branch to work on components. Like in your examples I was using
injectGlobal
from styled-components to add webfonts, root font size and some base styles for html and body elements.Today I decided to try the server side rendering branch. I realised that
injectGlobal
runs on page load. That causes a small glitch in the UI because the browser first displays the page without said styles and then injects them only after first render.Using a styles.css solves that issue. I was wondering if you have a better solution to that?
The text was updated successfully, but these errors were encountered: