You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When dealing with asynchronouse code we always have some contextual information given that directly relate to the output of an asynchronouse code.
48
+
When dealing with asynchronous code we always have some contextual information given that directly relate to the output of an asynchronous code.
49
49
50
50
The a good example is a `[Promise](https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Promise)` used in a UI where you can list items and search them.
51
51
52
52
The following states can apply to this UI:
53
53
54
54
- Initial loading of the list. (loading spinner)
55
55
- Display of the data (The actual value is now given and displayed)
56
-
- Error in the asynchronouse process (A error message is displayed)
56
+
- Error in the asynchronous process (A error message is displayed)
57
57
- Completion of the process (Communicates that the process is completed)
58
-
-Subsquent search actions (loading spinner)
58
+
-Subsequent search actions (loading spinner)
59
59
60
60
```typescript
61
61
@Component({
@@ -94,13 +94,13 @@ If we organize them visually 4 states, 3 of them contextual are given:
94
94
-**error** (communicating error)
95
95
-**complete** (communicating complete)
96
96
97
-
For those states we use the term **reactive context** which includes the state and contextual state of and asynchronouse process.
97
+
For those states we use the term **reactive context** which includes the state and contextual state of and asynchronous process.
0 commit comments