ant-design / cssinjs

https://ant-design.github.io/cssinjs
MIT License
236 stars 59 forks source link

useGlobalCache TypeError: Cannot read properties of null (reading '1') #127

Closed idaaaaaaa closed 11 months ago

idaaaaaaa commented 11 months ago

It happens when the route change, not 100% but it's easy to reproduce image

rafaewaqarqazi commented 11 months ago

I am also getting this error image

idaaaaaaa commented 11 months ago

image I moved const cache = createCache(); outside the StyledComponentsRegistry and it works fine now

RoudyTarabay commented 11 months ago

image I moved const cache = createCache(); outside the StyledComponentsRegistry and it works fine now

Thank you. Fixed it for me. The docs should be updated

afc163 commented 11 months ago

@zombieJ