title: How to load initial state in a flux store asynchronously?
body: <p>Till now whatever, react+flux apps that I have built, constructing the initial state of the store was easy as per the requirements of the app. I could just use simple JS objects, or in case the state needed to be persisted, I used localStorage which has a synchronous api, thus resulting in the state being available when getInitialState was called.</p>
  
  <pre><code>getInitialState() {
     return State.getInitialState();//synchronous method which returns state
  }
  </code></pre>
  
  <p>However, as per the current requirements, I have to save and retrieve the state from indexeddb, whose api is asynchronous. Thus, the intialState I get currently is undefined which leads to invariant violation error. </p>
  
  <p>Is it at all possible to load the initialState in the store asynchronously?  </p>