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
We inject everything in order. When you create a component a marker is injected so that the order of creation is guaranteed. So if you'd like injectGlobal to inject something first, then it must be called first, before any component is created.
An index.js file is usually the best place to put it, or to load it from.
In v3.2.0 we worsened a small bug—that was actually present before—that caused us not to move @import rules above every other stylesheet and into a separate one. v3.2.1 will fix this (See #1577)
OK thanks for the explanation. I actually thought I was doing this already but simply needed to move my global style import to happen before the App component import. It now works, thanks.
Version
styled-components: 3.2.0 (also happens on 3.1.6)
Reproduction
injectGlobal
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: