Kiriakos Naiskes
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/faq-ajax.md
|
@ -100,7 +100,7 @@ function MyComponent() { |
|
|
.then( |
|
|
.then( |
|
|
(result) => { |
|
|
(result) => { |
|
|
setIsLoaded(true); |
|
|
setIsLoaded(true); |
|
|
setItems(result.items); |
|
|
setItems(result); |
|
|
}, |
|
|
}, |
|
|
// Note: it's important to handle errors here |
|
|
// Note: it's important to handle errors here |
|
|
// instead of a catch() block so that we don't swallow |
|
|
// instead of a catch() block so that we don't swallow |
|
|