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

Manually call sheet.seal() to avoid memory leaks on with-styled-components example #6107

Merged
merged 1 commit into from
Jan 24, 2019
Merged

Conversation

lucasfeliciano
Copy link
Contributor

@lucasfeliciano lucasfeliciano commented Jan 23, 2019

I was noticing some bad memory leak on my company's application and I ended up finding this github issue ( styled-components/styled-components#1624 ) .

This comment ( styled-components/styled-components#1624 (comment) ) caught my attention, which lead to this other issue on the repository of styled components website ( styled-components/styled-components-website#329 )

After applying the changes on my project I noticed a huge improvement on memory consumption.

So would be nice to update the example or start a discussion on how to solve this properly

@lucasfeliciano lucasfeliciano changed the title Manually call sheet.seal() to avoid memory leaks Manually call sheet.seal() to avoid memory leaks on with-styled-components example Jan 23, 2019
Copy link
Contributor

@mxstbr mxstbr left a comment

Choose a reason for hiding this comment

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

This makes sense to me! 👍

@lucasfeliciano
Copy link
Contributor Author

Any idea why the test failed? 🤔

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

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

Looks great 👍

@timneutkens timneutkens merged commit ca521b3 into vercel:canary Jan 24, 2019
@timneutkens
Copy link
Member

@lucasfeliciano the windows build is sometimes a little unstable, if at least one of the 2 node.js versions passes it's 👍 Especially when editing the examples.

@lucasfeliciano
Copy link
Contributor Author

Thanks for clarifying. :)

mydearxym added a commit to coderplanets/coderplanets_web that referenced this pull request Jan 25, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants