title: How to get initial state with AJAX in a Store with Reflux
body: <p>Recently I've been working on React and Reflux.
  The part I get stuck is that I can't get initial state with AJAX in a store in Reflux.
  What I tried is just calling the <code>ajax($.getJSON)</code> in <code>getInitialState</code> function in Store.js, setting the initial state with the AJAX response(JSON), and figuring out what the state is. 
  I expected the output got from AJAX call would be JSON Array list, but the actual output will be <code>undefined</code></p>
  
  <p>So how can I getInitialState with AJAX in a Store with Reflux?</p>
  
  <p>The code is something like this...</p>
  
  <pre><code>// in store.js
  getInitialState: function() {
    $.getJSON('/sample').done(function(result){
      this.list = result;
    });
    return this.list;
  }
  
  // in sampleApp.jsx
  mixins: [Reflux.connect(Store, "list")],
  
    render() {
      console.log(this.state.list);
      // I expected this output would be JSON lists, but the actual output will be undefined.
  
      return ();
    } 
  </code></pre>