Skip to content

Commit d504604

Browse files
authored
Fix ajax hooks example (#3322)
1 parent 371156e commit d504604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/faq-ajax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function MyComponent() {
100100
.then(
101101
(result) => {
102102
setIsLoaded(true);
103-
setItems(result.items);
103+
setItems(result);
104104
},
105105
// Note: it's important to handle errors here
106106
// instead of a catch() block so that we don't swallow

0 commit comments

Comments
 (0)