title: redux reselect is returning a function
body: <p>For some strange weird reason my reselect selector is returning this function :</p>
  
  <pre><code>ƒ () {
      if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {
          // apply arguments instead of spreading for performance.
          lastResult = func.apply(null, arguments);
      }
  </code></pre>
  
  <p>I do not understand why it is doing this. It is supposed to return some JSON which I can use to map in my <strong>mapToProps</strong>.</p>
  
  <p>My redux mapping is simple enough and looks like this :</p>
  
  <pre><code>const mapStateToProps = (state) =&gt; {
      return {
          initialValues: selectShop(state),
      }
  }
  </code></pre>
  
  <p>My selector file looks like this :</p>
  
  <pre><code>import { createSelector } from 'reselect';
  
  //shops selector
  const selectDomain = () =&gt; state =&gt; (state ? state.shops : {});
  
  export const selectShop = () =&gt;
      createSelector(
          selectDomain(),
          shops =&gt; {
              let shop = shops.filter(shop =&gt; shop.selected);
              return shop[0];
          },
      );
  </code></pre>
  
  <p>Why am I getting a function returned instead of JSON?</p>