Skip to content

Commit b395fbf

Browse files
committed
revert
1 parent a8b96ac commit b395fbf

File tree

1 file changed

+2
-3
lines changed
  • packages/kit/test/apps/basics/src/routes/remote/batch

1 file changed

+2
-3
lines changed

packages/kit/test/apps/basics/src/routes/remote/batch/+page.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
} from './batch.remote.js';
88
99
const todoIds = ['1', '2', '1', 'error'];
10-
const todos = todoIds.map((id) => ({ id, promise: get_todo(id) }));
1110
</script>
1211

1312
<h1>Query Batch Test</h1>
1413

1514
<ul>
16-
{#each todos as { id, promise }, idx (idx)}
15+
{#each todoIds as id, idx}
1716
<li>
18-
{#await promise}
17+
{#await get_todo(id)}
1918
<span id="batch-result-{idx + 1}">Loading todo {id}...</span>
2019
{:then todo}
2120
<span id="batch-result-{idx + 1}">{todo.title}</span>

0 commit comments

Comments
 (0)