Open
Description
Describe the bug
A little bit of context, in #144 the first solution for cloning elements causes linked cloned nodes to change props to the original ones, #144 (comment) seems to have the same problem, but actually the nodes ids are changed and if we deserialize a serialized state editor inside a setTimeout function it works.
To Reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/epic-colden-giwsw
- Select a button, on the settings panel under delete click
clone
- Try to changes some props to the cloned element
- You can see that props are changed to the original one.
- Now uncomment line 87 on settings panel https://codesandbox.io/s/epic-colden-giwsw?file=/components/SettingsPanel.js:2258-2268
- Now the clone function works
Expected behavior
Cloning an element and run actions.addNodeTree
should load the correct data.
Metadata
Metadata
Assignees
Labels
No labels