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

Creates New Instances of Style Tags #26

Open
hybridwebdev opened this issue Feb 17, 2018 · 0 comments
Open

Creates New Instances of Style Tags #26

hybridwebdev opened this issue Feb 17, 2018 · 0 comments

Comments

@hybridwebdev
Copy link

hybridwebdev commented Feb 17, 2018

I found an issue with the plugin, where it is creating multiple style tags for the same element if you make repeated calls to the when called like so https://jsfiddle.net/major4zn/

I turned it into a HOC, which is called via other components. When the data feeding the HOC is changed, it does update the Styling (causing component to re-render which is fine) however you end up with something like this: https://snag.gy/WI7mSu.jpg

Notice the presence of multiple tags on the right in console. Perhaps I'm just missing a destroy method, but it seems like this is a bug.

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