[DevTools Bug]: React 17 error while trying to inspect hooks "Context reads do not line up with context dependencies." #28960
Labels
Component: Developer Tools
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Type: Bug
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:
![Screenshot 2024-04-30 at 3 57 37 PM](https://private-user-images.githubusercontent.com/122398572/326967891-6c8fc9ef-f3d5-429e-b2a2-8e1e4d4fd320.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MDExMTQsIm5iZiI6MTczOTkwMDgxNCwicGF0aCI6Ii8xMjIzOTg1NzIvMzI2OTY3ODkxLTZjOGZjOWVmLWYzZDUtNDI5ZS1iMmEyLThlMWU0ZDRmZDMyMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQxNzQ2NTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZjgwOTlhYzRmNmNhNmFmYmNiYzkzMzdkMDBiOWU4MTUxYzcwZjE3ODAzYWVmODY1NWE5MTliNDIxMzU3ZGI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.l8PByaA3KU7bl7zJVRY48mSPwelv2Ecj-76nvCqrTqM)
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: