Configuring the store
In the previous sections, we created all of the building blocks of NgRx that complete a fully functional store for the application. In this section, we will learn how to configure the NgRx store using runtime checks.
Runtime checks
Runtime checks are used to configure the NgRx store to allow developers to follow the NgRx and Redux core concepts and best practices. This is very useful, especially for developers new to NgRx; they display errors regarding development based on the activated runtime checks.
@ngrx/store
provides six built-in runtime checks:
strictStateImmutability
: Checks if the state isn’t mutated (default: On)strictActionImmutability
: Checks if the actions aren’t mutated (default: On)strictStateSerializability
: Checks if the state is serializable (default: On)strictActionSerializability
: Checks if the actions are serializable (default: Off)strictActionWithinNgZone
: Checks if actions are dispatched...