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

Method fetchData

website/src/examples/infinite-loading.js:93–97  ·  view source on GitHub ↗
(offset = 0, limit = PAGE_SIZE)

Source from the content-addressed store, hash-verified

91 }
92
93 fetchData(offset = 0, limit = PAGE_SIZE) {
94 return delay(3000).then(() => {
95 return DATA.slice(offset, offset + limit)
96 })
97 }
98
99 loadData() {
100 this.fetchData(0, Math.random() < 0.2 ? 0 : PAGE_SIZE).then(data => {

Callers 4

loadDataMethod · 0.95
loadMoreMethod · 0.95
loadDataFunction · 0.80
loadMoreFunction · 0.80

Calls 1

delayFunction · 0.85

Tested by

no test coverage detected