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
If you have an Object containing a Set with a reference to the Object and you _.cloneDeep it, you get RangeError: Maximum call stack size exceeded. In the same situation, but with an Array instead of a Set, there's no problem. Here's how you can reproduce it:
Seems like circular dependencies aren't properly handled when they're in Sets? From #2137 I saw that support for deep-cloning Sets, Maps, and Symbols was added at 24cef1a. Is this behavior expected? If not, I'd be happy to attempt a fix. Seems like I would need to patch the baseClone function?
The text was updated successfully, but these errors were encountered:
If you have an Object containing a Set with a reference to the Object and you
_.cloneDeep
it, you getRangeError: Maximum call stack size exceeded
. In the same situation, but with an Array instead of a Set, there's no problem. Here's how you can reproduce it:Seems like circular dependencies aren't properly handled when they're in Sets? From #2137 I saw that support for deep-cloning Sets, Maps, and Symbols was added at 24cef1a. Is this behavior expected? If not, I'd be happy to attempt a fix. Seems like I would need to patch the
baseClone
function?The text was updated successfully, but these errors were encountered: