title: React Router v4 Redirect not working
body: <p>I have a route which redirects after checking a condition like this</p>
  <pre><code>&lt;Route exact path=&quot;/&quot; render={()=&gt;(
  Store.isFirstTime ? &lt;Redirect to=&quot;intro&quot; /&gt; : &lt;Home state={Store}/&gt;)}/&gt;
  </code></pre>
  <p>The url changes when the condition is true but the component is not mounted. The rest of the component code is as below.</p>
  <pre><code>render() {
      return (
        &lt;div&gt;
          ...
          &lt;Route exact path=&quot;/&quot; render={()=&gt;(
            Store.isFirstTime ? &lt;Redirect to=&quot;intro&quot; /&gt; : &lt;Home state={Store} /&gt;         
          )} /&gt;
          &lt;Route path=&quot;/intro&quot; render={()=&gt;(&lt;IntroWizard state={Store.userInfo}/&gt;)} /&gt;
          &lt;Route path=&quot;/home&quot; render={()=&gt;(&lt;Home state={Store}/&gt;)} /&gt;
          &lt;Route render={()=&gt;(&lt;h1&gt;404 Not Found&lt;/h1&gt;)} /&gt;
          &lt;Footer /&gt;
        &lt;/div&gt;
      );
    }
  </code></pre>
  <p>My App Component is contained with in the BrowserRouter like thi</p>
  <pre><code>ReactDOM.render(&lt;BrowserRouter&gt;
      &lt;App/&gt;
  &lt;/BrowserRouter&gt;,
    document.getElementById('root')
  );
  </code></pre>
  <p>when I hit the url directly in the browser like 'localhost:3000/intro' component is mounted successfully, but when it goes through the redirect it doesn't display the component. How do I fix it?</p>
  <h1>Edit</h1>
  <p>So one detail was missing and I tried creating another project to reproduce the issue.
  My App component is a observer from mobx-react and it is exported as shown below</p>
  <pre><code>let App = observer(class App { ... })
  export default App
  </code></pre>
  <p>I have created this repo with a sample code to reproduce the issue you can use it
  <a href="https://github.com/mdanishs/mobxtest/" rel="noreferrer">https://github.com/mdanishs/mobxtest/</a></p>
  <p>So when Components are wrapped into mobx-react observer the redirect is not working else it works fine</p>