(offset = 0, limit = PAGE_SIZE)
| 63 | } |
| 64 | |
| 65 | fetchData(offset = 0, limit = PAGE_SIZE) { |
| 66 | return delay(3000).then(() => { |
| 67 | return DATA.slice(offset, offset + limit) |
| 68 | }) |
| 69 | } |
| 70 | |
| 71 | loadData() { |
| 72 | this.fetchData(0, Math.random() < 0.2 ? 0 : PAGE_SIZE).then(data => { |