Chapter 9. Immutable Stores

In this chapter, we're going to look at immutable data in Flux stores. Immutability is a term that often coincides with functional programming. Immutable data is data that doesn't change (mutate) once it's been created. The key benefit is that you can predict the root cause of data changes in an application because data can't inadvertently be changed by side-effects. Immutability and Flux get along nicely because they're both about explicitness and predictability.

We'll kick things off by talking about hidden updates or side-effects. Flux by itself discourages such things and immutable data helps enforce the idea. Then, we'll go over what these side-effects entail for the integrity of our Flux architecture. The most ...

Get Flux Architecture now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.