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

Method loadData

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

Source from the content-addressed store, hash-verified

97 }
98
99 loadData() {
100 this.fetchData(0, Math.random() < 0.2 ? 0 : PAGE_SIZE).then(data => {
101 if (!this._isMount) return
102 this.setState({
103 data,
104 loading: false,
105 loadedAll: data.length < PAGE_SIZE,
106 })
107 })
108 }
109
110 loadMore() {
111 this.setState({ loadingMore: true })

Callers 2

AppClass · 0.95

Calls 1

fetchDataMethod · 0.95

Tested by

no test coverage detected