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

Function loadMore

website/src/examples/infinite-loading-loader.js:82–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 loadMore() {
83 this.setState({ loadingMore: true })
84 this.fetchData(this.state.data.length).then(data => {
85 if (!this._isMount) return
86 this.setState({
87 data: [...this.state.data, ...data],
88 loadingMore: false,
89 loadedAll: data.length < PAGE_SIZE,
90 })
91 })
92 }
93
94 handleEndReached = args => {
95 action('onEndReached')(args)

Callers

nothing calls this directly

Calls 1

fetchDataMethod · 0.80

Tested by

no test coverage detected