Skip to content

Commit 5120bf8

Browse files
STRMLgaearon
authored andcommitted
Doc change for prevContext removal in CDU (#10836)
* Doc change for prevContext removal in CDU Ref: #8631 * Minor rewording
1 parent 893919f commit 5120bf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/context.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ If `contextTypes` is defined within a component, the following [lifecycle method
153153
- [`componentWillReceiveProps(nextProps, nextContext)`](/react/docs/react-component.html#componentwillreceiveprops)
154154
- [`shouldComponentUpdate(nextProps, nextState, nextContext)`](/react/docs/react-component.html#shouldcomponentupdate)
155155
- [`componentWillUpdate(nextProps, nextState, nextContext)`](/react/docs/react-component.html#componentwillupdate)
156-
- [`componentDidUpdate(prevProps, prevState, prevContext)`](/react/docs/react-component.html#componentdidupdate)
156+
157+
> Note: As of React 16, `componentDidUpdate` no longer receives `prevContext`.
157158
158159
## Referencing Context in Stateless Functional Components
159160

0 commit comments

Comments
 (0)