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

Fixes for hanging issue #41

Merged

Conversation

pawelglosz
Copy link
Contributor

@pawelglosz pawelglosz commented Jul 12, 2022

Hello @brendanmorrell ,
I've fixed 2 bugs with my current changes:

  • removed cloneDeep(), it looks like that at the end it wasn't needed at all
  • fixed support for ChainExpressions as a jsx attributes (there was an error The prop value with an expression type of ChainExpression could not be resolved for such cases)

@pawelglosz
Copy link
Contributor Author

Also, I've checked the functionality and performance on my few projects, everywhere it seems to work fine.

@brendanmorrell
Copy link
Owner

brendanmorrell commented Jul 12, 2022 via email

@pawelglosz
Copy link
Contributor Author

Please be aware, that there might be some breaking changes for some environments because of a major version update of jsx-ast-utils - it was needed for the ChainingExpression issue, please see the thread here: facebook/react#19940 (comment)

@brendanmorrell
Copy link
Owner

brendanmorrell commented Jul 13, 2022 via email

@pawelglosz
Copy link
Contributor Author

Hello @brendanmorrell , any updates around this? :)

@brendanmorrell
Copy link
Owner

brendanmorrell commented Jul 28, 2022 via email

@brendanmorrell
Copy link
Owner

brendanmorrell commented Jul 28, 2022

So, everything looking good when i run the project locally. Only thing I notice is that the code you added only fires an error if the styled component is defined inside of the object where you are placing it. if it is defined outside of the object, the rule no longer fires. I don't use this pattern personally, so not sure how much of an issue that is. If it isn't an accepted version of this pattern and you don't think an update is necessary, I'm good merging this and releasing a new version.
Screen Shot 2022-07-28 at 11 03 49 AM

@pawelglosz
Copy link
Contributor Author

It won't be an issue, I think we can release it as it is. I'll look at the case with a styled component defined outside of the object and try to add support for it as well. But this can be done in another release.

@brendanmorrell brendanmorrell merged commit 525dd9a into brendanmorrell:master Jul 29, 2022
@brendanmorrell
Copy link
Owner

brendanmorrell commented Jul 29, 2022

merged. new version with this change is 1.0.0. Thanks again, Pawel!

@pawelglosz
Copy link
Contributor Author

Thank you! I'll try to look into the case with a styled component defined outside of the object as soon as possible :)

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.

None yet

2 participants