(nextProps)
| 31 | } |
| 32 | |
| 33 | componentWillReceiveProps (nextProps) { |
| 34 | if (nextProps.value !== this.props.value) { |
| 35 | this.setValue(nextProps.value); |
| 36 | } |
| 37 | if (!deepEqual(nextProps.data, this.props.data)) { |
| 38 | this.setState({ data: this.formatData(nextProps.data) }); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | formatData (data) { |
| 43 | data = toTextValue(data, this.props.textTpl, this.props.valueTpl); |
nothing calls this directly
no test coverage detected