Skip to content

Commit fd9a34f

Browse files
committed
Show await example in readme
1 parent 099f36a commit fd9a34f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@ loader.resolved.then(([response]) => {
5252
// Use response of fetch()
5353
loader.value; // "success"
5454
});
55+
56+
/* Or with await: */
57+
// const [response] = await loader.resolved;
58+
// loader.value; // "success"
5559
```

0 commit comments

Comments
 (0)