-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore circular references #37
Comments
Seems out of scope since the project is solely focused on cloning... however I do see the appeal of avoiding additional looping if you're working with gigantic objects or need to do a huge number of clones. For the time being, if your objects are JSON serializable you can use the |
Unfortunately it is more complex since its the input of our apps logs and therefor it can be ANY valid JS object. I fiddled something together and will try it this week. Maybe it can be another file "circular" of you are interested. Anyway will post my changes as soon as I have something together. |
Ok, I will post my PR soon, no need to accept it. I also made some other adjustments which besides the circular might be a good fit. |
I am trying to tidy our codebase and replace all of our _.deepClone stuff with Klona or with simpler solutions where it fits. Unfortunately, in one case where a deep clone is required, we have a circular ref that we cannot remove at this point. Would it be possible for Klona to ignore a circular ref or add some option how to handle these, so we could ignore it?
I expect something like
I am also happy with any package that removes circular references, but I would love to have both in one place.
The text was updated successfully, but these errors were encountered: