Replace fast-deep-equal with deep-eql#629
Replace fast-deep-equal with deep-eql#629Domino987 merged 1 commit intomaterial-table-core:masterfrom
Conversation
|
What are the cost paying for changing the lib? Did you check those? |
|
Yup, did my own benchmarks using Here's the summary of testing non-circular objects: Most of these packages run around the same time, with For circular objects, the only packages that didn't crash or error were I would fully expect a slight performance hit that comes with checking for circular references, since it's a notable addition to the algorithm. That's probably why the 3 working packages are the 3 slowest in the above summary. I just think it's worth it to add robustness to PS: Thanks for maintaining this package, the existence of this fork has been a huge help. |
|
Any update on how the mods feel about this one? Anything I can discuss to help get it through? For my use case, it's an absolutely crucial bug fix, I have to imagine others will hit it too. |
|
Ill merge it and will be monitoring it if it will slow down. |
Related Issue
#111 (recent comment on a closed issue)
Description
fast-deep-equalwithdeep-eqlfor testing object equality@material-table/corecurrently usesfast-deep-equalto test for deep equality, but this package crashes with a call stack overflow when non-React objects with circular references are passed in (i.e. object A references object B which references object A).deep-eqlis robust against this situation.Related PRs
List related PRs against other branches:
Impacted Areas in Application
Additional Notes
nextbranch if necessary, I just can't test it with my current set up.