src/index.js
function(...args) {
      const cacheKey = keySelector(...args);

      if (isValidCacheKey(cacheKey)) {
        let cacheResponse = cache.get(cacheKey);

        if (cacheResponse === undefined) {
          cacheResponse = selectorCreator(...funcs);
          cache.set(cacheKey, cacheResponse);
        }

        return cacheResponse(...args);
      }
      console.warn(
        `[re-reselect] Invalid cache key "${cacheKey}" has been returned by keySelector function.`
      );
      return undefined;
    }
function(...args) {
      const cacheKey = keySelector(...args);

      if (isValidCacheKey(cacheKey)) {
        let cacheResponse = cache.get(cacheKey);

        if (cacheResponse === undefined) {
          cacheResponse = selectorCreator(...funcs);
          cache.set(cacheKey, cacheResponse);
        }

        return cacheResponse(...args);
      }
      console.warn(
        `[re-reselect] Invalid cache key "${cacheKey}" has been returned by keySelector function.`
      );
      return undefined;
    }
function ( ... args ) { const cacheKey = keySelector ( ... args ) ; if ( isValidCacheKey ( cacheKey ) ) { let cacheResponse = cache . get ( cacheKey ) ; if ( cacheResponse === undefined ) { cacheResponse = selectorCreator ( ... funcs ) ; cache . set ( cacheKey , cacheResponse ) ; } return cacheResponse ( ... args ) ; } console . warn ( ` ${ cacheKey } ` ) ; return undefined ; }
Application receives this function
Application receives this function