Upgrade Reselect to 4.1.2
Co-authored-by: Fedor Indutnyy <indutny@signal.org>
This commit is contained in:
parent
066a23a6a9
commit
4490d9f2d0
5 changed files with 24 additions and 35 deletions
|
@ -20,7 +20,7 @@ import { strictAssert } from './assert';
|
|||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export function memoizeByRoot<F extends Function>(
|
||||
fn: F,
|
||||
equalityCheck?: <T>(a: T, b: T, index: number) => boolean
|
||||
equalityCheck?: <T>(a: T, b: T) => boolean
|
||||
): F {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
const cache = new WeakMap<object, Function>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue