Skip to content

Commit

Permalink
Fix broken link on componentWillReceiveProps tip
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Nov 14, 2013
1 parent f6f3d42 commit 4a9ed4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ prev: controlled-input-null-value.html
next: props-in-getInitialState-as-anti-pattern.html
---

`componentWillReceiveProps` isn't triggered after the node is put on scene. This is by design. Check out [other lifecycle methods](/react/docs/tips/component-specs.html) for the one that suits your needs.
`componentWillReceiveProps` isn't triggered after the node is put on scene. This is by design. Check out [other lifecycle methods](/react/docs/component-specs.html) for the one that suits your needs.

The reason for that is because `componentWillReceiveProps` often handles the logic of comparing with the old props and acting upon changes; not triggering it at mounting (where there are no old props) helps in defining what the method does.

0 comments on commit 4a9ed4a

Please sign in to comment.