Skip to content

Commit

Permalink
Adjust loader UI spacing for consistency between types
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmischka committed Apr 26, 2023
1 parent bc1b6fb commit 74f49b5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/examples/basic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,21 @@ const prod = new Interval({
async_page_test: new Page({
name: 'Async page test',
handler: async () => {
await sleep(10_000)
await sleep(2_000)

await ctx.loading.start('Generating page...')

await sleep(10_000)
await sleep(2_000)

await ctx.loading.start({
label: 'Generating rows...',
itemsInQueue: 100,
})

for (let i = 0; i < 100; i++) {
await ctx.loading.completeOne()
await sleep(100)
}

const allData = generateRows(100)

Expand Down

0 comments on commit 74f49b5

Please sign in to comment.