How to Check Data Loading Status like in GitHunt


#1

Stumbled across this line in GitHunt: https://github.com/apollostack/GitHunt/blob/343346a7c497155022ec99a6a5d39abe31437e7b/ui/Layout.js#L19

Is the loading field created automatically? Or do I need to handle that myself? Couldn’t tell in the code, but when I log the field in my app it returns undefined.


#2

loading should be created for you by react-apollo. See:


#3

Okay, I see. I was destructing out my data first and missed that key. Thanks.