title: Why is componentDidMount not being called when I re-render?
body: <p>I have multiple modals for signing up, and having trouble with it. I have three actions in total. First the register button which then activates the first register modal to either sign up with google or facebook, then after that completes the modal for additional information which could not be gathered by the provider will appear with pre-filled inputs gathered form provider. I render the two modals when I render the application and only show it when the register button is clicked. I need the componentDidMount to be called after I complete the facebook or google login, but it was called when I rendered the modals when the app fist started. The buttons hit action reducers and reducers changing the state of type bool on wether to show the modal or not. </p>
  
  <pre><code>class HeaderRegisterButton extends Component {
     render() {
       return(
         &lt;div&gt;
           &lt;Register1/&gt;
           &lt;Register2/&gt;
         &lt;/div&gt;
       );
     }
   }
  </code></pre>
  
  <p>Register Modal 1</p>
  
  <pre><code>class Register1 extends Component {
     render() {
       return(
         &lt;div&gt;
          &lt;button onClick={() =&gt; this.props.showRegister2()} /&gt; //This would hit the action reducer to get initial info and change the bool to show register 1 to false and register 2 to true.
         &lt;/div&gt;
       );
     }
   }
  </code></pre>
  
  <p>Register Modal 2</p>
  
  <pre><code>import { reduxForm, Field, initialize } from 'redux-form';
  
  class Register2 extends Component {
  
    componentDidMount() {
      hInitalize() //only called when the app fires, not when the state changes in the action reducer to change bool to show this modal.
    }
  
    hInitalize() {
     var initData = {};
    const initData = {
     "name" = this.props.name//name stored inside redux store
    };
    this.props.initialize(initData)
    }
  
  
  
     render() {
       return(
         &lt;div&gt; 
          //Code to display the modal which works.
         &lt;/div&gt;
       );
     }
   }
  </code></pre>