Skip to content

Fix assorted memoization correctness issues - #777

Merged
markerikson merged 3 commits into
masterfrom
bugfix/assorted-memoize-correctness
Aug 14, 2026
Merged

markerikson merged 3 commits into
masterfrom
bugfix/assorted-memoize-correctness

Conversation

@markerikson

Copy link
Copy Markdown
Contributor

This PR:

  • Fixes the accidentally-swapped order of args to the equality check in lruMemoize
  • Removes use of equality checks from the dev stability probe
  • Removes an unnecessary call to get(key) in put() - that's internal and we only ever call put after we've already done that get call, so it's duplicate work

Fixes #693
Supersedes #758
Supersedes #759

The extra get() call didn't have an issue, just noticed working on these.

@netlify

netlify Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for reselect-docs canceled.

Name Link
🔨 Latest commit 3822fb8
🔍 Latest deploy log https://app.netlify.com/projects/reselect-docs/deploys/6a7f67cb3ff7430008620011

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@markerikson
markerikson merged commit ce3c430 into master Aug 14, 2026
43 checks passed
@aryaemami59
aryaemami59 deleted the bugfix/assorted-memoize-correctness branch October 28, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

weakMapMemoize with resultEqualityCheck is provided empty objects for first call.

1 participant