Skip to content

Commit

Permalink
Use provided memoize function for selectors
Browse files Browse the repository at this point in the history
In addition to memoizedResultFunc
  • Loading branch information
srolel authored Nov 11, 2017
1 parent 92d16de commit f0c8af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f0c8af4

Please sign in to comment.