mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
6 lines
261 B
TypeScript
6 lines
261 B
TypeScript
import { memoize } from 'lodash';
|
|
import { createSelectorCreator } from 'reselect';
|
|
|
|
const hashFn = (...args) => args.reduce((acc, val) => acc + '-' + JSON.stringify(val), '');
|
|
export const createLodashMemoizedSelector = createSelectorCreator(memoize, hashFn);
|