(nextProps: Object)
| 31 | } |
| 32 | |
| 33 | componentWillReceiveProps(nextProps: Object): void { |
| 34 | if (nextProps.data instanceof Array && this.props.data !== nextProps.data) { |
| 35 | this.root.setData(nextProps.data); |
| 36 | this.setState({}); //force update |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | |
| 41 | get root(): any{ |