title: Redux - pass ownProps argument to selector
body: <p>I cannot pass variable <code>ownProps</code> from <code>mapStateToProps</code> to selector. My selector:</p>
  
  <pre><code>export const nameSelector = createSelector(
      [
          state =&gt; state.element.get('name')
      ],
      (name) =&gt; !name.trim()
  );
  
  const mapStateToProps = (state, ownProps) =&gt; ({
      disabledAfterSave: nameSelector(state)
  });
  </code></pre>
  
  <p>And I need to have a selector:</p>
  
  <pre><code>export const nameSelector = createSelector(
          [
              state =&gt; state.element.get('name')
          ],
          (name, ownProps) =&gt; !name.trim() &amp;&amp; ownProps.showMessage
      );
  
  const mapStateToProps = (state, ownProps) =&gt; ({
      disabledAfterSave: nameSelector(state, ownProps)
  });
  </code></pre>
  
  <p>But now I get an error: <code>ReferenceError: ownProps is not defined</code>.</p>
  
  <p>When I tried to pass it like below:</p>
  
  <pre><code>export const nameSelector = (ownProps) =&gt; createSelector(
          [
              state =&gt; state.element.get('name')
          ],
          (name) =&gt; !name.trim() &amp;&amp; ownProps.showMessage
      );
  </code></pre>
  
  <p>the returned type is not bool but <code>[Function selector]</code>.
  How can I pass this argument to my selector?</p>