(offset = 0, limit = PAGE_SIZE)
| 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 => { |