Upgrade Reselect to 4.1.2

Co-authored-by: Fedor Indutnyy <indutny@signal.org>
This commit is contained in:
Evan Hahn 2021-11-12 16:37:44 -06:00 committed by GitHub
parent 066a23a6a9
commit 4490d9f2d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 35 deletions

View file

@ -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>();