Skip to content

Commit 9c86570

Browse files
committed
Fix example
1 parent 9201ea7 commit 9c86570

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

readme.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ loader.current; // "idle"
6262
loader.next("FETCH");
6363
loader.current; // "loading"
6464

65-
loader.results.then((result) => {
66-
console.log("Fetched", result.fetchData);
67-
// Use response of fetch()
65+
loader.results.then((results) => {
66+
console.log("Fetched", results.fetchData); // Use response of fetch()
6867
loader.current; // "success"
6968
});
7069

@@ -113,8 +112,8 @@ loader.current; // "idle"
113112
loader.next("FETCH");
114113
loader.current; // "loading"
115114

116-
loader.results.then(([response]) => {
117-
// Use response of fetch()
115+
loader.results.then((results) => {
116+
console.log("Fetched", results.fetchData); // Use response of fetch()
118117
loader.current; // "success"
119118
});
120119
```

0 commit comments

Comments
 (0)