Skip to content

Fix circular object issue - #21

Merged
sidx1024 merged 6 commits into
mainfrom
sid/circular-objects-fix
Oct 8, 2025
Merged

Fix circular object issue#21
sidx1024 merged 6 commits into
mainfrom
sid/circular-objects-fix

Conversation

@sidx1024

@sidx1024 sidx1024 commented Oct 8, 2025

Copy link
Copy Markdown
Owner

Circular objects weren't handled by deepEqual method provided by fast-equals. It includes circularDeepEqual method which is substantially slower but handles circular objects.

This PR adds support for selectComparator method to specify comparator (deepEqual/circularDeepEqual) for each hook so we can maintain performance for all comparisons except for those which have circular objects.

@sidx1024
sidx1024 merged commit 32c2d53 into main Oct 8, 2025
2 checks passed
@sidx1024
sidx1024 deleted the sid/circular-objects-fix branch October 8, 2025 23:17
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.

1 participant