Closed cdelgadob closed 3 years ago
Interesting, did you run into this issue yourself? Can you provide some sample data that would reasonably be used in this function that triggers this issue?
Closing as stale (and perhaps no longer relevant, since 2.0 has been published and no longer uses this function)
Feel free to comment if this needs reopening
There is a case that makes the method
mergeChanges(component, kvchanges, str)
from the gojs-angular library get stuck in an infinite loop. More specifically, is a non-ending recursion call in thecompareObjs(obj1, obj2)
method.I think it's caused by the circular structure discussed here.
My guess is that in the line
if (!compareObjs(obj1[p], obj2[p]))
it never ends, because of that circular structure mentioned before.Here is the code, just imagine that the
obj1
has a reference to itself in any property: the recursion would never end.