Closed Bug 1566002 Opened 5 years ago Closed 5 years ago

Remove unnecessary key values and replace componentWillReceiveProps

Categories

(DevTools :: Netmonitor, task, P2)

67 Branch
task

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: tanhengyeow, Assigned: tanhengyeow)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36

Expected results:

  1. Remove unnecessary key values in new components related to WS monitor.

Keys are only needed in the parent component where Array.map is done. Some components for e.g. FrameListColumnData do not need key values.

  1. Replace componentWillReceiveProps.

componentWillReceiveProps (aliased to UNSAFE_componentWillReceiveProps) is getting deprecated in React and likely to be removed in a next major version. We should consider replacing it with componentDidUpdate instead.

Type: defect → task

Thanks for the report!
Honza

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3

Remove unnecessary key values, replace componentWillReceiveProps, did some cleanup

Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5be4c15a9e0d
Remove unnecessary key values and replace componentWillReceiveProps. r=nchevobbe
Assignee: nobody → E0032242
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: