* Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree.
()
| 7985 | * LICENSE file in the root directory of this source tree. |
| 7986 | */ |
| 7987 | function componentWillMount() { |
| 7988 | // Call this.constructor.gDSFP to support sub-classes. |
| 7989 | var state = this.constructor.getDerivedStateFromProps(this.props, this.state); |
| 7990 | |
| 7991 | if (state !== null && state !== undefined) { |
| 7992 | this.setState(state); |
| 7993 | } |
| 7994 | } |
| 7995 | |
| 7996 | function componentWillReceiveProps(nextProps) { |
| 7997 | // Call this.constructor.gDSFP to support sub-classes. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…