Skip to content

Commit 11f6ef6

Browse files
Merge pull request #11 from pBouillon/fix-typos-in-chapter-4
Fix minor typos in chapter 4
2 parents 0f6deaa + 3c9b68b commit 11f6ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/chapter-4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ As mentioned in the previous chapter, we need a state management solution that i
1313
1414
### How do bugs happen?
1515

16-
In most cases, we have bugs not because the code is wrong (in that case we essentially didn't tell the computer what _exactly_ we wanted), but because the data is not in the expected state. The variable `age` all of a sudden holds a negative value, because someone misclicked when the IDE offered an autocomplete or a correction. Or maybe the Array of users is empty, because we called the wrong API, or stored the data in the wrong variable, or forgot to subscribe. Problems like this happen _all the time_. Remember the last vry annoying bug you encountered. Was it because of a very minor mistake like a typo? If yes, answer the following: how frustrating was the whole experience?
16+
In most cases, we have bugs not because the code is wrong (in that case we essentially didn't tell the computer what _exactly_ we wanted), but because the data is not in the expected state. The variable `age` all of a sudden holds a negative value, because someone misclicked when the IDE offered an autocomplete or a correction. Or maybe the Array of users is empty, because we called the wrong API, or stored the data in the wrong variable, or forgot to subscribe. Problems like this happen _all the time_. Remember the last very annoying bug you encountered. Was it because of a very minor mistake like a typo? If yes, answer the following: how frustrating was the whole experience?
1717

1818
## What does NgRx offer?
1919

20-
NgRx, as mentioned, is built on concepts of Redux. It utilizes core ideas like `Stores` (the place where the application states is stored), `Actions` (events that notify the `Store` that some change to the state is to happen), `Reducers` (functions that determine how a certain `Action` affects the `State`), and also adds concepts like `Selectors` (functions that allow to pick a slice of the `State` as an `Observable`) and `Effects` (special functions that work on side effects like data loading and API calls). It also provides utility functions to make writing boilerplate code easier and even utility libraries like `@ngrx/entity` to work with large lists of data. We will learn in depth about all of those concepts and tools in corresponding chapters.
20+
NgRx, as mentioned, is built on concepts of Redux. It utilizes core ideas like `Stores` (the place where the application states are stored), `Actions` (events that notify the `Store` that some change to the state is to happen), `Reducers` (functions that determine how a certain `Action` affects the `State`), and also adds concepts like `Selectors` (functions that allow to pick a slice of the `State` as an `Observable`) and `Effects` (special functions that work on side effects like data loading and API calls). It also provides utility functions to make writing boilerplate code easier and even utility libraries like `@ngrx/entity` to work with large lists of data. We will learn in depth about all of those concepts and tools in corresponding chapters.
2121

2222
Together, this tools allow us to build a truly scalable state management solution.
2323

0 commit comments

Comments
 (0)