MCPcopy Create free account
hub / github.com/Autodesk/react-base-table / loadMore

Method loadMore

website/src/examples/infinite-loading.js:110–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 2

AppClass · 0.95

Calls 1

fetchDataMethod · 0.95

Tested by

no test coverage detected