-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Cannot ready property 'readContext' of undefined #14575
Comments
If you just want to run the program in the development env, you can modify the code in 'react-cache/cjs/react-cache.development.js' by yourself:
'currentOwner' is no use except in function readContext. so here is the new:
And that work in my code. |
Did you delete your codesandbox repro? Please add it so I can have a look. also, can you try with the newer alpha? (16.8.0-alpha.1) |
(This is expected to not work until we release an update to |
See #14780 (comment). |
Doesn't work yet, because of facebook/react#14575
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
react-cache
is not working with Suspense.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox
https://codesandbox.io/s/3jw6y3ww6
What is the expected behavior?
To show the loading screen, or at least not to fail
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
react: 16.8.0-alpha.0
react-dom: 16.8.0-alpha.0
react-cache: 2.0.0-alpha.1
The text was updated successfully, but these errors were encountered: