()
| 108 | } |
| 109 | |
| 110 | loadMore() { |
| 111 | this.setState({ loadingMore: true }) |
| 112 | this.fetchData(this.state.data.length).then(data => { |
| 113 | if (!this._isMount) return |
| 114 | this.setState({ |
| 115 | data: [...this.state.data, ...data], |
| 116 | loadingMore: false, |
| 117 | loadedAll: data.length < PAGE_SIZE, |
| 118 | }) |
| 119 | }) |
| 120 | } |
| 121 | |
| 122 | handleEndReached = args => { |
| 123 | action('onEndReached')(args) |
no test coverage detected