0👍
✅
Might be because you’re passing references to objects in your store’s state, which might lead inadvertently to their mutation. Try creating deep clones of these objects when you pass them around, like for example ..
nodeConfig = JSON.parse(JSON.stringify(entry.config));
parentElementConfig = JSON.parse(JSON.stringify(entry.config))
;
nodeConfig === {} ? JSON.parse(JSON.stringify(entry.value)) : nodeConfig,
Source:stackexchange.com