|
|
|
|
|
by joewood1972
4029 days ago
|
|
I think what was meant was that immutability solves cache synrhoncization issues. More accurately, state synchronization issues. If you think about the DOM as the projected state of an application, immutable data structures allow you to very simply define a functions that perform the transformation from application state to the GUI data structures (e.g. the DOM). If the state mutates this can cause cascading state changes that make this function much harder to reason about. |
|