Skip to content

Incorrect cloning of objects which have a react.element #19

Description

@bpAhmadi3d

Hello
I noticed that when i use CloneDeep on objects that have a react element for example :

myObj = {
  element: <div>i'm a react element</div>
}

The react element is ruined and you can't render this element any more, after console.log() the element before and after the clone i can clearly see that some changes are made to the object and its not really a "clone", this bug has forced me to not be able to use CloneDeep, i really appreciate an update for this library which fixes this issue,
Here is an example showing this issue.
thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions