Skip to content

Documentation for componentWillReceiveProps() is confusing #3610

Closed
@fedosejev

Description

@fedosejev

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions