FrontendState Management
KW-0022

Immutable Data

Concept
Meaning

data that cannot be modified directly; instead, new copies are created when changes are needed

Example

Updating state by returning a new object instead of modifying the existing one in a reducer

Reference
Prevents unexpected bugs and side effects; important in frameworks like React/NgRx
Related
immutabilitypure functionstate update

Built with ♥ by Sakib