styled-components / xstyled

A utility-first CSS-in-JS framework built for React. 💅👩‍🎤⚡️
https://xstyled.dev
MIT License
2.28k stars 105 forks source link

feat: add option to disable xstyled cache #379

Closed mleralec closed 2 years ago

mleralec commented 2 years ago

Summary

Following this issue https://github.com/gregberge/xstyled/issues/371, we need to have an option to disable xstyled cache. It's already present in styled-system api and can be useful for many reasons.

Test plan

Just add the disableXstyledCache key on your theme and set the value to true :

const theme = {
  ...defaultTheme,
  disableXstyledCache: true,
}