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
.
loading
should be created for you by react-apollo
. See:
/// <reference path="../typings/main.d.ts" />
import {
Component,
createElement,
PropTypes,
} from 'react';
// modules don't export ES6 modules
import isObject = require('lodash.isobject');
import isEqual = require('lodash.isequal');
import invariant = require('invariant');
import assign = require('object-assign');
import {
IMapStateToProps,
IMapDispatchToProps,
IConnectOptions,
connect as ReactReduxConnect,
} from 'react-redux';
This file has been truncated. show original
Okay, I see. I was destructing out my data first and missed that key. Thanks.