From ffa102d71a1761936ab04afe4c6b36b85b4bcc5b Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Tue, 26 Sep 2017 12:29:35 -0500 Subject: [PATCH] Doc change for prevContext removal in CDU (#10836) * Doc change for prevContext removal in CDU Ref: https://github.com/facebook/react/issues/8631 * Minor rewording --- docs/context.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/context.md b/docs/context.md index ed75177a..ce180d1f 100644 --- a/docs/context.md +++ b/docs/context.md @@ -153,7 +153,8 @@ If `contextTypes` is defined within a component, the following [lifecycle method - [`componentWillReceiveProps(nextProps, nextContext)`](/react/docs/react-component.html#componentwillreceiveprops) - [`shouldComponentUpdate(nextProps, nextState, nextContext)`](/react/docs/react-component.html#shouldcomponentupdate) - [`componentWillUpdate(nextProps, nextState, nextContext)`](/react/docs/react-component.html#componentwillupdate) -- [`componentDidUpdate(prevProps, prevState, prevContext)`](/react/docs/react-component.html#componentdidupdate) + +> Note: As of React 16, `componentDidUpdate` no longer receives `prevContext`. ## Referencing Context in Stateless Functional Components