title: Which method in react life cycle call after dispatch process and before render
body: <p>I have a state that specify which component render(component A or B).
  This state is determined when my action dispatch specific type(for example GO_TO_B or GO_TO_A).</p>
  
  <p>Then I need to fetch some config from server to render component A. I want these config be in store.So I should call a action(for example fetchConfig() ) to async fetch data from server and dispatch response.</p>
  
  <p>My question is that where i call the fetchConfig() action.</p>
  
  <p>if I call this action in componentDidMount() in component A the error occur that cannot dispatch middle of dispatch.</p>
  
  <p>So which method in react life cycle call after dispatch process and before render ?     </p>