-
Notifications
You must be signed in to change notification settings - Fork 45.6k
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
[DevTools Bug]: React 17 error while trying to inspect hooks "Context reads do not line up with context dependencies." #28960
Comments
Thank you for the report! The underlying cause is calling This is only a bug with React DevTools using React 17 and below. React 18 and above work fine. Should be fixed once #28974 is released. In the meantime, you can install the unpacked extension from the branch when working with React 17 and below. Download https://output.circle-artifacts.com/output/job/03edee00-b0d2-48a2-b4b9-7e190c1ac521/artifacts/0/build/devtools/chrome-extension.zip, unpack it, go to chrome://extensions/, enable developer mode, click on "load unpacked extension" and select the unpacked |
Thank you! |
Thank you so much! |
感谢 |
Thanks for sharing the details on the issue @eps1lon. I'm looking forward to the update. Do you have a bundle for a Firefox version of the extension? |
收到啦,谢谢
|
Website or app
https://github.com/gdeedlerthryv/react-dev-tools-test/
Repro steps
Issue was introduced by DevTools 5.1.0 release, I think this PR is the culprit. I built the 5.0.2 extension and the error did not occur:
I wasn't able to repro the issue without external libraries, but someone who knows better probably could.
How often does this bug happen?
Every time
DevTools package (automated)
No response
DevTools version (automated)
No response
Error message (automated)
No response
Error call stack (automated)
No response
Error component stack (automated)
No response
GitHub query string (automated)
No response
The text was updated successfully, but these errors were encountered: