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

Support Spread Element #286

Merged

Conversation

benjaminRomano
Copy link
Contributor

Background
Spread operator does not work. See the following issue for more details: #235.

This fails as the transpiler tries to convert the SpreadElement node into a key/value. Additionally, it needs to ensure that objects are converted into a p

Change

  • Do not treat spreadElement as an expression
  • Properly map object values of the SpreadElement argument into Styled component props.

Test Plan
Added a new test case that validates spread elements and nested spread elements are handled properly. The gen code looks correct, but I'm not too familiar with what styled components gen code should look like.

@benjaminRomano
Copy link
Contributor Author

@probablyup ptal when you get a chance

@pie6k
Copy link

pie6k commented Jun 30, 2020

It would be great to have this merged.

@kylemh
Copy link

kylemh commented Jul 28, 2020

@probablyup - friendly bump on this

Copy link
Collaborator

@quantizor quantizor left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks!

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

4 participants