We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8b96ac commit b395fbfCopy full SHA for b395fbf
packages/kit/test/apps/basics/src/routes/remote/batch/+page.svelte
@@ -7,15 +7,14 @@
7
} from './batch.remote.js';
8
9
const todoIds = ['1', '2', '1', 'error'];
10
- const todos = todoIds.map((id) => ({ id, promise: get_todo(id) }));
11
</script>
12
13
<h1>Query Batch Test</h1>
14
15
<ul>
16
- {#each todos as { id, promise }, idx (idx)}
+ {#each todoIds as id, idx}
17
<li>
18
- {#await promise}
+ {#await get_todo(id)}
19
<span id="batch-result-{idx + 1}">Loading todo {id}...</span>
20
{:then todo}
21
<span id="batch-result-{idx + 1}">{todo.title}</span>
0 commit comments