Home Reference Source Test Repository

buildDocs/memoizeAll.js

import { memoize } from 'lodash';
import { DecoratorConfig, DecoratorFactory } from './factory';
import { MemoizeApplicator } from './applicators';
/**
 * Memoizes a function on the prototype instead of the instance. All instances of the class use the same memoize cache.
 * @param {Function} [resolver] Optional resolver
 */
export const MemoizeAll = DecoratorFactory.createDecorator(new DecoratorConfig(memoize, new MemoizeApplicator()));
export { MemoizeAll as memoizeAll };
export default MemoizeAll;