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

Upgrade to styled-components v5 #108

Closed
wants to merge 2 commits into from
Closed

Upgrade to styled-components v5 #108

wants to merge 2 commits into from

Conversation

dcastil
Copy link

@dcastil dcastil commented Jan 14, 2020

@vercel
Copy link

vercel bot commented Jan 14, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

gatsby-theme-primer-example – ./

🔍 Inspect: https://vercel.com/primer/gatsby-theme-primer-example/577usy82d
✅ Preview: https://gatsby-theme-primer-example-git-styled-components-v5.primer.now.sh

doctocat – ./

🔍 Inspect: https://vercel.com/primer/doctocat/bvx9y6qyp
✅ Preview: https://doctocat-git-styled-components-v5.primer.now.sh

@dcastil
Copy link
Author

dcastil commented Jan 14, 2020

Hmmm could someone tell me what made the deployment fail? I don't have permission to access the build logs unfortunately.

Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on, @dcastil! 🎉

It looks like this update broke live preview iframes:

image

My best guess is that the problem is with the StyleSheetManager used in the Frame component: https://github.com/primer/doctocat/blob/master/theme/src/components/frame.js

@mxstbr Did StyleSheetManager at all in the v5 release?

@dcastil
Copy link
Author

dcastil commented Jan 16, 2020

Damn, I didn't even notice. Thanks for investigating, @colebemis! Seems like some styles are applied and some not. I'll try to figure it out. But there shouldn't be any breaking changes to the StylesheetManager, it might be a bug in styled-components.

@dcastil
Copy link
Author

dcastil commented Jul 29, 2020

The StylesheetManager fix styled-components/styled-components#3159 was merged just now. Looks like we can make the upgrade happen after the next release of styled-components. 😊

@changeset-bot
Copy link

changeset-bot bot commented Oct 30, 2020

⚠️ No Changeset found

Latest commit: 3ea9e6b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dcastil
Copy link
Author

dcastil commented Oct 30, 2020

The StylesheetManager issue was fixed in styled-components@5.2.0. I checked the deployment on Vercel and looks good!

@mxstbr
Copy link

mxstbr commented Nov 2, 2020

~10% faster! 😍

Screenshot 2020-11-02 at 07 27 58

Screenshot 2020-11-02 at 07 28 15

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2021

Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 1, 2021
@github-actions github-actions bot closed this Nov 8, 2021
@dcastil dcastil deleted the styled-components-v5 branch November 9, 2021 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants