lochbrunner/react-flow-editor

Props mutation

VitamineC opened this issue · 2 comments

Describe the bug

Editor component mutates nodes prop. It's bad practice, you shouldn't do it.
I suggest you clone nodes prop and change it only after that.

In demo mode?
In demo mode this is intended. Otherwise it would be a bug, you are right.

@VitamineC Do you see this behavior only in demo mode or in non-demo mode as well?