Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
idaaaaaaa opened this issue Jul 20, 2023 · 4 comments · Fixed by #137
Closed

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

idaaaaaaa opened this issue Jul 20, 2023 · 4 comments · Fixed by #137
Assignees

Comments

@idaaaaaaa
Copy link

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

@rafaewaqarqazi
Copy link

I am also getting this error
image

@idaaaaaaa
Copy link
Author

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

@RoudyTarabay
Copy link

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
Copy link
Member

afc163 commented Jul 23, 2023

@zombieJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants