Closed
Description
If you read this doc: https://facebook.github.io/react/docs/component-specs.html#updating-componentwillreceiveprops - it says: "Invoked when a component is receiving new props."
However it's not clear on why componentWillReceiveProps()
is still being invoked when a component does not explicitly receive any props. For example: http://jsbin.com/nawucuseqo/1/edit?js,console
Looks like by default componentWillReceiveProps()
is called every time during updating phase, and you, as a developer, have no control over that.
Metadata
Metadata
Assignees
Labels
No labels