[DevTools Bug] Cannot add node "1" because a node with that id is already in the Store.
Website or app
local personal app
Repro steps
I was using Global context
How often does this bug happen?
Every time
DevTools package (automated)
react-devtools-extensions
DevTools version (automated)
4.25.0-336ac8ceb
Error message (automated)
Cannot add node "1" because a node with that id is already in the Store.
Error call stack (automated)
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26596:41
at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24626:22)
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24795:14
at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:54959:39)
Error component stack (automated)
No response
GitHub query string (automated)
https://api.github.com/search/issues?q=Cannot add node because a node with that id is already in the Store. in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
I also got this error. The code that I used to produce this error is here. (Accompanying HTML and CSS files are available too, just change the file name in your browser's address bar to index.html or main.css.)
Reinstalling the extension fixed the issue for me
Reopening chrome DevTools fixed it for me
One possible cause of this issue is when multiple react devtool instances are running on the same page. Restarting the devtools (by close and open chrome devtools, or re-install the extension) often helps. If this issue still persists please let me know! It would be very helpful if someone can provide a way to reproduce.