From ee516b80886d274269c17a04fd62b23b4dd9ae4d Mon Sep 17 00:00:00 2001 From: Dave Powers Date: Tue, 14 Nov 2017 23:15:46 -0500 Subject: [PATCH] Add missing variable in AJAX FAQ example - include "isLoaded" in destructuring assignment --- 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 5dd852e0..cd4cc330 100644 --- a/content/docs/faq-ajax.md +++ b/content/docs/faq-ajax.md @@ -55,7 +55,7 @@ class MyComponent extends React.Component { } render() { - const { error, items } = this.state; + const { error, isLoaded, items } = this.state; if (error) { return
Error: {error.message}
; } else if (!isLoaded) {