Skip to content
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

Causes a flash of unstyled content when used with Gatsby and styled components #5

Open
fwextensions opened this issue May 6, 2022 · 0 comments

Comments

@fwextensions
Copy link

I have a simple Gatsby site that uses styled components and MDX: https://github.com/fwextensions/gatsby-test

I noticed that a React component that used SC to style some elements would flash with the wrong font size when the page initially loaded in the built site (running it locally with the dev version worked okay). Something in this bug made me think to disable gatsby-plugin-prettier-build, and that fixed the unstyled flash.

I haven't tried to debug it, as it's easier right now to live with the ugly, unprettified gatsby output to avoid the flash, but wanted to let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant