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

Function loadData

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

Source from the content-addressed store, hash-verified

69 }
70
71 loadData() {
72 this.fetchData(0, Math.random() < 0.2 ? 0 : PAGE_SIZE).then(data => {
73 if (!this._isMount) return
74 this.setState({
75 data,
76 loading: false,
77 loadedAll: data.length < PAGE_SIZE,
78 })
79 })
80 }
81
82 loadMore() {
83 this.setState({ loadingMore: true })

Callers

nothing calls this directly

Calls 1

fetchDataMethod · 0.80

Tested by

no test coverage detected