mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
6 lines
275 B
TypeScript
6 lines
275 B
TypeScript
import { memoize } from 'lodash';
|
|
import { createSelectorCreator } from 'reselect';
|
|
|
|
const hashFn = (...args: any[]) => args.reduce((acc, val) => acc + '-' + JSON.stringify(val), '');
|
|
export const createLodashMemoizedSelector = createSelectorCreator(memoize as any, hashFn);
|