Warning: Each child in an array or iterator should have a unique "key" prop.
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: Honza, Assigned: davidwalsh)
References
Details
(Whiteboard: [qa-68b-p2])
Attachments
(1 file)
I am seeing the following warning in the Browser Console:
Warning: Each child in an array or iterator should have a unique "key" prop.
Check the render method of SourcesTree
. See https://fb.me/react-warning-keys for more information.
in div (created by SourcesTree)
in SourcesTree (created by Connect(SourcesTree))
in Connect(SourcesTree) (created by PrimaryPanes)
in div (created by PrimaryPanes)
printWarning resource://devtools/client/shared/vendor/react-dev.js:369
warning resource://devtools/client/shared/vendor/react-dev.js:393
validateExplicitKey resource://devtools/client/shared/vendor/react-dev.js:1555
validateChildKeys resource://devtools/client/shared/vendor/react-dev.js:1577
createElementWithValidation resource://devtools/client/shared/vendor/react-dev.js:1708
renderPane resource://devtools/client/debugger/new/src/components/PrimaryPanes/SourcesTree.js:168
render resource://devtools/client/debugger/new/src/components/PrimaryPanes/SourcesTree.js:220
--
STR
- Start a worker with BP in it
- The worker execution should stop immediately
- New entry should be added to the Sources tree
Honza
Reporter | ||
Comment 1•6 years ago
|
||
Online example:
STR:
- Load http://janodvarko.cz/tests/bugzilla/1538774/
- Click
Start Worker!
on the page - Create BP on line 15
- Close entire tab and open again
- Click
Start Worker!
on the page - The worker should start and pause immediately
- Open Browser Console, see the warning -> BUG
Note that there is also
Warning: React does not recognize the clasName
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase clasname
instead. If you accidentally passed it from a parent component, remove it
Honza
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 2•6 years ago
|
||
Fixes a typo for className. Only part 1, doesn't address actual issue.
Assignee | ||
Comment 3•6 years ago
|
||
I started a patch for the two issues presented but I could't reproduce with Honza's instructions. Additionally, I looked at the line numbers and neither of them would trigger this type of issue.
Reporter | ||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Description
•