title: Warning: Failed context type: The context `store.isRequired` is marked as required in `Routing`, but its value is `undefined`
body: <p>I'm having an issue with react-redux Provider:
  I moved our router out of our index.js to a routing.js file. I used a Provider to give my Routing component knowledge of the store but I'm getting a strange warning before the execution reaches the render method : </p>
  
  <p><code>Warning: Failed context type: The context `store.isRequired` is marked as required in `Routing`, but its value is `undefined`.</code></p>
  
  <p>This happens even if I get rid of the <code>.isRequired</code> in <code>Routing.contextTypes</code>. Moreover if I put a debugger statement at the beginning of the render function, it appears that <code>this.context</code>isn't undefined and my app is working like a charm. I'm wondering if I did something wrong or if it could possibly be a bug of react-redux Provider or something. </p>
  
  <p>Here is my code:</p>
  
  <p><strong>index.js</strong></p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import { setLanguage } from 'redux-i18n';
  import I18n from 'redux-i18n/immutable';
  
  import configureStore from './store/configure_store';
  import { Routing } from './routing';
  import translations from './translations';
  
  import '../scss/index.scss';
  
  const store = configureStore();
  
  store.dispatch(setLanguage(navigator.language));
  
  ReactDOM.render(
      &lt;Provider store={ store }&gt;
          &lt;I18n translations={ translations }&gt;
              &lt;Routing /&gt;
          &lt;/I18n&gt;
      &lt;/Provider&gt;,
      document.getElementById("root")
  );
  </code></pre>
  
  <p><strong>routing.js (simplified for reading purpose)</strong></p>
  
  <pre><code>import React from 'react';
  import { Route, IndexRedirect, IndexRoute, Router, browserHistory } from 'react-router';
  import AppContainer from './components/App/App';
  import Base from './components/Root/Base';
  import BaseInProject from './components/App/BaseInProject';
  import { ProjectListContainer } from './components/App/Projects/ProjectsList';
  
  export class Routing extends React.Component {
      render() {
          const { store } = this.context;
  
          const beforeAppRouteEnter = (nextState, replace, callback) =&gt; {
              // This function needs to store.dispatch some stuff
          };
  
          // Some other router functions
  
          const routes = (
              &lt;Route path='/' component={ Base }&gt;
  
                  &lt;Route component={ AppContainer } onEnter={ beforeAppRouteEnter }&gt;
                      &lt;IndexRoute component={ ProjectListContainer } /&gt;
  
                           // Some other routes
  
                          &lt;IndexRedirect to='media' /&gt;
                      &lt;/Route&gt;
                  &lt;/Route&gt;
              &lt;/Route&gt;
          );
  
          return (
              &lt;Router history={ browserHistory }&gt;{ routes }&lt;/Router&gt;
          );
      }
  }
  Routing.contextTypes = {
      store: React.PropTypes.shape(React.PropTypes.any)
  };
  </code></pre>
  
  <p>Thanks! </p>