-
Notifications
You must be signed in to change notification settings - Fork 47k
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] Could not inspect element with id "219". Error thrown:Cached data for element "219" not found #22241
Comments
Hi @HomeskulTest. I'm sorry you ran into this problem 😦 Unfortunately, it doesn't look like this issue has enough info for one of us to reproduce it though. (An error stack is not a substitution for repro steps.) This means that it's going to be very hard for us to fix. Please help us by providing a link to a CodeSandbox (https://codesandbox.io/s/new), a repository on GitHub, or a minimal code example that reproduces the problem. (Screenshots or videos can also be helpful if they help provide context on how to repro the bug.) Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve |
I'm experiencing the same issue |
Hello, |
This happened with me when I was (probably foolishly) pass down props to a toast component directly into a state, like below: |
Please see my above comment (#22241 (comment)) saying that we need someone to share a way for us to reproduce this bug. Unfortunately stack traces or +1 comments don't help much. |
Edited: P.S. My code is working now and it is not giving below error. So I guess whoever had this error probably needs to fix their code, like me! I hope @bvaughn it helps you in fixing. |
Hi, I'm facing the same problem.Here is a minimal code example: codesandbox |
@SleepDevil Thank you for sharing these steps! I am able to repro it indeed. I believe what's happening is this:
In the case you describe above, closing and re-opening DevTools blows away that cache. The backend thinks the frontend still has the cache though, and so it returns a "no-change" response. This is clearly a case that DevTools doesn't handle properly that's clear in hindsight. :) |
@bvaughn I'm glad it can help you.By the way, can you help me solve my problem in the codesandbox?The problem is: I try to set my array state one by one after one second, from an empty object to an object with a
But I don't know why I can't operate on the |
I think it's best to keep discussion on this issue focused on the DevTools bug being reported. |
Ok,I have also raised my problem on stackoverflow, I will be grateful if you can help me solve this problem. |
Website or app
employer-test.apna.co
Repro steps
The error occurred at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37563:3)
at Suspense
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36097:5)
at div
at InspectedElementErrorBoundaryWrapper (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36542:3)
at NativeStyleContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:38972:3)
at div
at div
at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34323:3)
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34764:3)
at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40911:52)
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36097:5)
at div
at div
at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36215:3)
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36249:5)
at div
at div
at div
at ThemeProvider (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36215:3)
at SchedulingProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:42093:3)
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40537:3)
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29185:3)
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29796:3)
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36605:3)
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51354:3)
How often does this bug happen?
Often
DevTools package (automated)
react-devtools-extensions
DevTools version (automated)
4.18.0-f58bbcf9a
Error message (automated)
Could not inspect element with id "219". Error thrown:Cached data for element "219" not found
Error call stack (automated)
No response
Error component stack (automated)
GitHub query string (automated)
The text was updated successfully, but these errors were encountered: