title: Dynamic initial state in React Redux based on props from React Router v4
body: <p>Is there any way to have a dynamic initial state loaded into Redux? In my case, I'd like a certain variable in the store to be dependent on what route the user initially lands on. </p>
  
  <p>Right now, my workaround is not to show any components until it's fully loaded. I check the <code>location.pathname</code> on <code>componentDidMount</code> and then set the variable based on that and also the <code>loaded</code> variable to true in the store but I'm wondering if there's a cleaner way to do this. </p>