Closed quantizor closed 2 years ago
One of these changes broke my thing that isn't using the object syntax, I hope to find out more later but just an immediate FYI
@klarstrup must be something to do with this change: https://github.com/styled-components/babel-plugin-styled-components/pull/359/files#diff-ef6a6ffba3d725918f184d76241892f9e7ac878aa3891cce860feea7648794b3L125
If you can come up with an example of the syntax that triggers the error, would appreciate it.
You'll have to excuse the cobbled together repro but here you see the problem at a glance:
v2.0.1
v2.0.0
So in short there's an issue of spread ...props
disappearing when combined with css
within a render prop (but this also happens if one copies out the render prop function into for example a useMemo
)
fixes #352