mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
Correct a method param in Implementation Notes (#8252)
This commit is contained in:
committed by
Dan Abramov
parent
1a5d504fb2
commit
b1eabd709f
@@ -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