From f0c8af4395102cebc3390ee60a88d6fca70adccb Mon Sep 17 00:00:00 2001 From: Sharon Rolel Date: Fri, 10 Nov 2017 21:51:30 -0500 Subject: [PATCH] Use provided memoize function for selectors In addition to memoizedResultFunc --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 69714c839..dca4b124e 100644 --- a/src/index.js +++ b/src/index.js @@ -65,7 +65,7 @@ export function createSelectorCreator(memoize, ...memoizeOptions) { ) // If a selector is called with the exact same arguments we don't need to traverse our dependencies again. - const selector = defaultMemoize(function () { + const selector = memoize(function () { const params = [] const length = dependencies.length