mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Correct a method param in Implementation Notes (#8252)
This commit is contained in:
committed by
Dan Abramov
parent
3e708497d2
commit
fa4710fe51
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user