-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Fixed negative refs #122
Fixed negative refs #122
Conversation
Makes no sense to not let the style be injected if `unuse` was called more times than `use`.
@sokra any feedback on this? |
I would say #176 needs to go in first. After that adding a test for this PR would be possible. 👍 |
Alright. #176 is in. Please add a test and we'll merge. |
@bebraw test is in place. I ran it without my change and it failed, with my change 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tomasAlabes Thx
Style should be able to be injected if
unuse
was called more times thanuse
.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.