Skip to content

Conversation

@tomasAlabes
Copy link
Contributor

@tomasAlabes tomasAlabes commented May 11, 2016

Style should be able to be injected if unuse was called more times than use.

myCss.use()
myCss.unuse()
myCss.unuse()

myCss.use() //should be valid, regardless of the double call to unuse

Following the GC idea, there are not "negative" amount of references, just none. Preventing adding more refs makes no sense.
This basically prevents refs from being negative, then the behavior is the same as before.

Makes no sense to not let the style be injected if `unuse` was called more times than `use`.
@tomasAlabes
Copy link
Contributor Author

@sokra any feedback on this?
Thanks

@bebraw
Copy link

bebraw commented Mar 6, 2017

I would say #176 needs to go in first. After that adding a test for this PR would be possible. 👍

@bebraw
Copy link

bebraw commented Mar 6, 2017

Alright. #176 is in. Please add a test and we'll merge.

@tomasAlabes
Copy link
Contributor Author

@bebraw test is in place. I ran it without my change and it failed, with my change 🚀
Thanks for your work in the loaders guys!

Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

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

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

Successfully merging this pull request may close these issues.

4 participants