Fork me on GitHub
#data-oriented-programming
<
2022-05-18
>
cbc20:05:56

In Listing 5.16. The reconciliation flow in action, it says:

cbc20:05:59

if(havePathInCommon(previousToCurrent, previousToNext)) {
            return _.merge(current, previousToNext);
        }
        throw "Conflicting concurrent mutations.";

cbc20:05:13

should that be !havePathInCommon()?

cbc20:05:24

Also, typo here:

cbc20:05:52

and this line: "If there’s a context switch between checking whether the system has changed in the SystemConsistency class and the updating of the state in SystemData class, a mutation might override the changes of a previous mutation."

cbc20:05:09

I think SystemData should be SystemState

Yehonathan Sharvit05:05:30

You are right!

👍 1