From d49e4e1145d919c62f6346713f02362b266df7d0 Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Mon, 6 Jun 2022 20:02:08 -0400 Subject: [PATCH] Give internal memoize callback functions names for dev readability --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 969a3f2b1..7a9c920f0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -108,7 +108,7 @@ export function createSelectorCreator< const dependencies = getDependencies(funcs) const memoizedResultFunc = memoize( - function () { + function recomputationWrapper() { recomputations++ // apply arguments instead of spreading for performance. return resultFunc!.apply(null, arguments) @@ -117,7 +117,7 @@ export function createSelectorCreator< ) // If a selector is called with the exact same arguments we don't need to traverse our dependencies again. - const selector = memoize(function () { + const selector = memoize(function dependenciesChecker() { const params = [] const length = dependencies.length