Skip to content

Commit

Permalink
Merge pull request #297 from Mosho1/patch-1
Browse files Browse the repository at this point in the history
Use provided memoize function for selectors
  • Loading branch information
ellbee authored Jun 22, 2018
2 parents 59456cd + f0c8af4 commit fda697a
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 fda697a

Please sign in to comment.