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

Don't dasherize property names twice #148

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

drewpereli
Copy link
Contributor

Hey there. This package is awesome! Much nicer than using inline style strings.

I noticed in the source code, it looks like dasherize is being called twice? Once in compileStyles, and again in StyleModifier#setStyles. Since setStyles only ever gets passed the return value of compileStyles, I think the second call to dasherize is unnecessary. But feel free to ignore this if I'm missing something.

Thanks again for this package.

Copy link
Owner

@jelhan jelhan left a comment

Choose a reason for hiding this comment

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

Good catch. I guess something missed in a refactoring. Thanks a lot reading the code that carefully!

@jelhan jelhan added the bug Something isn't working label Feb 13, 2023
@jelhan jelhan merged commit e9b314b into jelhan:master Feb 15, 2023
@jelhan
Copy link
Owner

jelhan commented Feb 15, 2023

I just released it as v3.0.1.

@drewpereli drewpereli deleted the dont-dasherize-twice branch February 15, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants