title: Passing construction parameters to redux middleware
body: <p>I was curious if there is a way to pass a parameter to a middleware without retrieving it from the state. What I want to do is to pass a generic function that we are using that determines if the user is authenticated or not. So rather than retreiving the authentication information from the state which will be code duplication, I want to pass <code>isAuthenticated</code> function to the middleware.</p>
  
  <p>I don't think this is implemented natively in <code>applyMiddleware</code> framework but maybe someone has a work around for this situation. </p>