(nextProps, nextState)
| 44 | } |
| 45 | |
| 46 | shouldComponentUpdate (nextProps, nextState) { |
| 47 | if (!shallowEqual(this.props, nextProps)) { |
| 48 | return true; |
| 49 | } |
| 50 | |
| 51 | if (nextProps.formData) { |
| 52 | let keys = Object.keys(this.items); |
| 53 | for (let i=0, key; i<keys.length; i++) { |
| 54 | key = keys[i]; |
| 55 | if (nextProps.formData[key] !== this.items[key].$value) { |
| 56 | return true; |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | return !shallowEqual(this.state, nextState); |
| 62 | } |
| 63 | |
| 64 | itemBind (props) { |
| 65 | this.items[props.id] = props; |
nothing calls this directly
no test coverage detected