iari
10/24/2020, 7:33 PMCSSBuilder
I'm using a custom font (i.e. the css contains fontFace declarations)
I inject the css into my react project using the injectGlobal
function.
Everytime the react application re-renders, the css seems to be reloaded, and I get a quick flash of the fonts without the custom font applied.
It seems to be this problem:
https://github.com/styled-components/styled-components/issues/2900