Correct a method param in Implementation Notes (#8252)

This commit is contained in:
Shuhei Kagawa
2016-11-10 15:19:27 +01:00
committed by Dan Abramov
parent 1a5d504fb2
commit b1eabd709f

View File

@@ -576,7 +576,7 @@ class CompositeComponent {
// Component class
// Call the lifecycle if necessary
if (publicInstance.componentWillUpdate) {
publicInstance.componentWillUpdate(prevProps);
publicInstance.componentWillUpdate(nextProps);
}
// Update the props
publicInstance.props = nextProps;