Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/memoizedShallowEqual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {shallowEqual} from 'fast-equals';
* the O(keys) walk and the rest resolve in O(1). WeakMap keys make stale entries impossible to
* read (lookup requires holding both exact objects) and let GC reclaim them.
*/
const shallowEqualVerdicts = new WeakMap<object, WeakMap<object, boolean>>();
const shallowEqualVerdicts = new WeakMap<WeakKey, WeakMap<WeakKey, boolean>>();

/**
* Identity-pair-memoized shallowEqual: same (a, b) references → cached verdict, no walk.
Expand Down
Loading