From d50460490fa5d28307e179e97a62b4b4e1efad15 Mon Sep 17 00:00:00 2001 From: Kiriakos Naiskes Date: Tue, 13 Oct 2020 22:10:49 +0300 Subject: [PATCH] Fix ajax hooks example (#3322) --- content/docs/faq-ajax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/faq-ajax.md b/content/docs/faq-ajax.md index 74a9a81e..636332b5 100644 --- a/content/docs/faq-ajax.md +++ b/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