Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkis committed Feb 19, 2016
1 parent 39f9de5 commit 895eb6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const reducer = (appState, { type }) {
}
```

However, using Saga we don't need to store the intermediate state in the application state and reducers because all this lives in Saga. **The reducer would be just simple a projection of your Domain Events (Actions)**.
However, using Saga we don't need to store the intermediate state in the application state and reducers because all this lives in Saga. **The reducer would be just a simple projection of your Domain Events (Actions)**.

```javascript
const reducer = (appState, { type }) {
Expand All @@ -67,7 +67,7 @@ const reducer = (appState, { type }) {
}
```

So why people keep saying that Saga is good for Side effects? Let's just take API call as a good example of side effect. When you want to call an API you probably want to have three actions `API_REQUESTED`, `API_SUCCEEDED`, `API_FAILED` and now you can imagine this as the **long running transaction** because it's a **sequence of actions which live in time** (long running) and you need to connect the Request with Response (transaction).
So why people keep saying that Saga is good for Side effects? Let's just take API call as a good example of side effect. When you want to call an API you probably want to have three actions `API_REQUESTED`, `API_SUCCEEDED`, `API_FAILED` and now you can imagine this as the **long running transaction** because it's a **gssequence of actions which live in time** (long running) and you need to connect the Request with Response (transaction).


## Usage
Expand Down

0 comments on commit 895eb6d

Please sign in to comment.