linaria icon indicating copy to clipboard operation
linaria copied to clipboard

Object interpolation doesn't work with enums

Open oriooctopus opened this issue 3 years ago • 1 comments

https://codesandbox.io/s/blissful-pine-j7z3m?file=/pages/index.tsx

This is a strange bug. I've created a codesandbox (link is above) that demonstrates it well:

There you can see the different variants and see which combinations work and which specific combination does not work. The necessary conditions are: -An object is being interpolated -The object has at least 2 properties -One of the keys for those properties is an enum

oriooctopus avatar Sep 17 '21 04:09 oriooctopus

It looks like the shaker shakes a bit more code than expected. I'll take a closer look in a couple of days. Thank you!

Anber avatar Sep 17 '21 09:09 Anber