Browse Source

Fix ajax hooks example (#3322)

main
Kiriakos Naiskes 4 years ago
committed by GitHub
parent
commit
d50460490f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/faq-ajax.md

2
content/docs/faq-ajax.md

@ -100,7 +100,7 @@ function MyComponent() {
.then(
(result) => {
setIsLoaded(true);
setItems(result.items);
setItems(result);
},
// Note: it's important to handle errors here
// instead of a catch() block so that we don't swallow

Loading…
Cancel
Save