linaria
linaria copied to clipboard
Cache is not updating for object interpolation
Sorry to open multiple issues so quickly. I guess I'm just using this in an unconventional way.
https://codesandbox.io/s/great-flower-zbv05?file=/src/textVariants.tsx
This is another strange example. A couple of notes:
- notice the two usages. One does update when you change the variant styles the other doesn't
- The reason the second one works and the first doesn't is because the second on imports the styles object directly, where as the first one runs through an extra file for some extra processing. The first usage is most similar to the use case in my actual codebase, and I made the second usage just to make it clearer how this bug is occuring
- For the one that doesn't update, it will update after about a minute, or if you delete the cache and rebuild
It looks like a problem with our webpack plugin. As I said before, we just didn't test it enough with objects interpolation :) Thank you for your effort!