Warning: Each child in an array or iterator should have a unique "key" prop.
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: Honza, Assigned: Honza)
Details
Attachments
(2 files)
The sub error messages are:
- Check the render method of
SourcesTree
. - Check the render method of
Accordion
STR:
- Load http://janodvarko.cz/tests/bugzilla/1539142/
- Open the Toolbox (in my case the Debugger panel is the default panel)
- Click the
Start Worker
button - The worker should appear in the Sources tree and you should see the first warning in the Browser Console
- Create BP on line 17 in Webpack/src/worker.js file
- Wait for break and check the Browser Console for the second warning
Honza
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Thank you for reporting this Honza! Unfortunately I can't reproduce with your steps. I even added a few workers in the hopes it would trigger the key problem.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
I don't understand why you can't repro that, but the attached patch fixes that for me.
Honza
Assignee | ||
Updated•5 years ago
|
Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/04537ce859c9 Warning: Each child in an array or iterator should have a unique "key" prop. r=davidwalsh
Comment 5•5 years ago
|
||
Backed out changeset 04537ce859c9 (Bug 1540741) for causing debugger failure CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=238149628&repo=autoland
Backout: https://hg.mozilla.org/integration/autoland/rev/ef7519e228fb1e4557ab086ff9a1aa134635d480
Comment 6•5 years ago
|
||
Dang; looks like we needed to add a yarn jest -u
update for the snapshots.
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to David Walsh :davidwalsh from comment #6)
Dang; looks like we needed to add a
yarn jest -u
update for the snapshots.
David, what exactly should I do to fix the patch?
Honza
Comment 8•5 years ago
|
||
cd devtools/client/debugger/new/
and run yarn jest -u
; doing so should update the out of date Jest snapshots. The test fails because those snapshots (rendered elements) don't have the key
attributes you've added in your patch. After running yarn jest -u
, run hg status
and you should see a few changed .snap
files. Add those to the patch and we should be good!
Pushed by jodvarko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/650ab6bfa91a Warning: Each child in an array or iterator should have a unique "key" prop. r=davidwalsh
Comment 10•5 years ago
|
||
bugherder |
Description
•