(prevProps: TaskProps)
| 201 | } |
| 202 | |
| 203 | componentDidUpdate(prevProps: TaskProps) { |
| 204 | const props = this.props; |
| 205 | |
| 206 | if (prevProps.items !== props.items) { |
| 207 | this.setState({ |
| 208 | items: props.items ? props.items.concat() : [] |
| 209 | }); |
| 210 | } else if ( |
| 211 | isApiOutdated( |
| 212 | prevProps.checkApi, |
| 213 | props.checkApi, |
| 214 | prevProps.data, |
| 215 | props.data |
| 216 | ) |
| 217 | ) { |
| 218 | this.tick(true); |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | componentWillUnmount() { |
| 223 | clearTimeout(this.timer); |
nothing calls this directly
no test coverage detected