title: Redux Dispatch Not Working in Action Creator
body: <p>I have the following action creator(s) and for some reason, the code within the <em>dispatch</em> doesn't execute, although I know that the <em>loginSuccess()</em> gets invoked because the first alert triggers. What am I doing wrong?</p>
  
  <pre><code>import facebook from '../api/facebook'
  import * as types from '../constants/ActionTypes';
  
  export function loginSuccess() {
    alert("This alerts fine");
    return dispatch =&gt; {
      alert("This doesn't alert");
    }
  }
  </code></pre>
  
  <p>I am using Thunk (or at least think I am correctly) as can be seen below when creating the store.</p>
  
  <pre><code>import App from './containers/App';
  import React, { Component } from 'react';
  import { Provider } from 'react-redux';
  import configureStore from './store';
  import createReducer from './reducers';
  import { createStore, applyMiddleware } from 'redux'
  import Parse from 'parse/react-native';
  import { AsyncStorage } from 'react-native';
  import Settings from './settings';
  import thunk from 'redux-thunk'
  import logger from 'redux-logger'
  
  const settings = Settings.load();
  
  const middleware = [ thunk, logger() ]
  
  const store = createStore(
      createReducer(),
      applyMiddleware(...middleware)
  )
  
  function setup() {
      class Root extends Component {
          render() {
              return (
                  &lt;Provider store={store}&gt;
                      &lt;App /&gt;
                  &lt;/Provider&gt;
              );
           }
      }
  
      return Root;
  }
  
  module.exports = setup;
  </code></pre>
  
  <p>The component that is invoking <code>loginSuccess()</code> is shown below...</p>
  
  <pre><code>import { View, Text } from 'react-native';
  import React, { Component,PropTypes } from 'react';
  import { loginSuccess,loginError } from '../../../actions/application'
  import {
   LoginButton,
   GraphRequest,
   GraphRequestManager,
   GraphRequestConfig,
  } from 'react-native-fbsdk'
  
  
  class FacebookLogin extends Component {
  
  _onLoginSuccess(result){
      loginSuccess();
  };
  
  _onLoginError(error){
      loginError();
  }
  
  _onLoginCancelled(){
  
  }
  
  render(){
    return (
      &lt;View&gt;
        &lt;LoginButton
          readPermissions={["email","public_profile","user_friends"]}
          onLoginFinished={
            (error, result) =&gt; {
              if (error) {
                this._onLoginError(error);
              } else if (result.isCancelled) {
                this._onLoginCancelled();
              } else {
                this._onLoginSuccess(result);
              }
            }
          }
          onLogoutFinished={() =&gt; alert("User logged out")}/&gt;
      &lt;/View&gt;
    );
  }
  }
  
  FacebookLogin.propTypes = {
    navigator: PropTypes.object.isRequired,
  };
  
  export default FacebookLogin;
  </code></pre>