title: Reselect - Props undefined in selector
body: <p>I have one container with its selectors and It renders another container that has its other selectors. </p>
  
  <p>The problem with that is that the second one, props are undefined and it breaks everything.</p>
  
  <p>Here's the code (where props are undefined in the second selector):</p>
  
  <p><em><strong>selectProductsState</strong> props returning undefined.</em></p>
  
  <p><strong>One selector:</strong></p>
  
  <pre><code>const selectProductsState = () =&gt; ({ products }, props) =&gt; { return { products, props } };
  
  const getCurrentProductFromParams = () =&gt; createSelector(
    selectProductsState(),
    getProductsItems(),
    ({ props }, items) =&gt; {
      const id = extractId(props.params);
  
      return items[id];
    }
  );
  </code></pre>
  
  <p><strong>ProductContainer:</strong></p>
  
  <pre><code>class ProductPage extends React.Component {
  
      render() {
          return (&lt;OtherContainer /&gt;)
      }
  }
  
  const mapStateToProps = createStructuredSelector({
    hasLoadingErrors: getHasLoadingErrors(),
    productNotFound: getProductNotFound(),
    product: getProduct(),
    getCurrentProductFromParams
  });
  </code></pre>
  
  <p>Another container has his own selectors.</p>
  
  <p>How can I fix that? </p>
  
  <p>Thanks</p>