You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation unclear that weakMapMemoize is now the default memoizer #753
constselectItemsByCategory=createSelector([(state: RootState)=>state.items,(state: RootState,category: string)=>category],(items,category)=>items.filter(item=>item.category===category),{memoize: weakMapMemoize,// ← This is already the defaultargsMemoize: weakMapMemoize// ← This is also already the default})
Developers may not realize the default changed: Those familiar with Reselect v4.x (where lruMemoize/defaultMemoize was default) may not realize the behavior has changed.
Migration implications unclear: The difference between lruMemoize (cache size: 1) and weakMapMemoize (unlimited cache) has significant performance and memory implications that aren't highlighted.
Suggested Improvements
Add a callout to the main documentation stating:
⚠️Note: As of v5.0, weakMapMemoize is the default memoizer. Previous versions used lruMemoize with a cache size of 1.
Update examples to either:
Remove the explicit memoize/argsMemoize options (since they're redundant)
Add comments explaining that this is showing explicit configuration but isn't necessary:
{// These are the defaults in v5.0+, shown here for clarity:memoize: weakMapMemoize,argsMemoize: weakMapMemoize}
changed the title [-]Documentation unclear that weakMapMemoize is now the default memoizer[/-][+]Documentation unclear that `weakMapMemoize` is now the default memoizer[/+]on Mar 18, 2026
Activity
EskiMojo14 commentedon Feb 10, 2026
sure, PRs are welcome
[-]Documentation unclear that weakMapMemoize is now the default memoizer[/-][+]Documentation unclear that `weakMapMemoize` is now the default memoizer[/+]markerikson commentedon Aug 16, 2026
Fixed in #782 !