Closed stavalfi closed 5 years ago
Solution: Migrate to immutable to represent the state tree (and the graphs in it)
Immutable.js doesn't solve this issue: https://github.com/facebook/immutable-js/issues/1023
Immutable.js doesn't support updating a shared object in the state tree by updating all its parents.
There is a bug in this function:
duplicateWorkflowGraph
: https://github.com/stavalfi/workflow/blob/46deaccb53fc607bf43fb5ee1eef35f3297e6663/src/createReducer.js#L174The bug is: if {a,b} -> c , then the result is: a'->c' , b'->c'' .