()
| 40 | } |
| 41 | |
| 42 | async componentDidMount() { |
| 43 | let entities = getEntitiesFromProps(this.props); |
| 44 | |
| 45 | if (isPromise(entities)) entities = await entities; |
| 46 | |
| 47 | this.setState( |
| 48 | { |
| 49 | entities: entities || {} |
| 50 | }, |
| 51 | () => { |
| 52 | if (this.props.running) this.start(); |
| 53 | } |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | componentWillUnmount() { |
| 58 | this.stop(); |
nothing calls this directly
no test coverage detected