title: react-redux can't find store but it sure looks like it's there
body: <p>OK - what the heck am I missing... spent a day and a half trying to solve this and am about to ditch redux...</p>
  
  <p>I have the following root route...</p>
  
  <pre class="lang-jsx prettyprint-override"><code>...
  
  import configureStore from 'NewApp/client/store';
  import createBrowserHistory from 'history/lib/createBrowserHistory';
  
  const history = createBrowserHistory();
  const store = configureStore(history);
  
  ReactDOM.render(
    &lt;Provider store={store}&gt;
     &lt;Router
       history={history}
       children={routes}
       {...clientOptions.props} /&gt;
    &lt;/Provider&gt;
    , rootElement
  );
  
  ...
  </code></pre>
  
  <p>And I see the store object, but I keep getting an error saying it's not there...</p>
  
  <p>Adding requested additional code:</p>
  
  <pre><code>...
  
  import rootReducer from '../reducers';
  
  const middlewares = [
    thunkMiddleware,
    loggerMiddleware,
  ];
  
  const finalCreateStore = compose(
    applyMiddleware(...middlewares),
    window.devToolsExtension ? window.devToolsExtension() : f =&gt; f
  )(createStore);
  
  export default function configureStore(history, initialState) {
    const store = finalCreateStore(rootReducer, initialState);
    syncReduxAndRouter(history, store, state =&gt; state.router);
  
    return store;
  }
  ...
  </code></pre>
  
  <p>...</p>
  
  <pre><code>import { connect } from 'react-redux';
  import { bindActionCreators } from 'redux';
  
  import { clearNotification } from '../actions/notifications';
  import { logout } from '../actions/auth';
  import App from '../components/App';
  
  function mapStateToProps(state) {
    return {
      locale: state.app.locale,
      loggingIn: state.auth.loggingIn,
      messages: state.app.messages,
      notification: state.notification,
      title: state.app.title,
      user: state.auth.user,
    };
  }
  
  function mapDispatchToProps(dispatch) {
    return bindActionCreators({
      clearNotification,
      logout,
    }, dispatch);
  }
  
  export default connect(mapStateToProps, mapDispatchToProps)(App);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/FxeMx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FxeMx.png" alt="enter image description here"></a></p>