Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anish000kumar authored Jan 13, 2018
1 parent afc2bdd commit e8b1963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default createSagas({
}
})
```
Above code means when SET_USER_NAME action is dispatched anywhere in the app, run the saga mentioned against it. Also, notice the `latest` modifier alongside the action name. It's equivalent of `takeLatest` from 'redux-saga'. You can also use `every` which would produce the same effect as `takeEvery` from 'redux-saga'.
Above code means when GET_ORDERS_LIST action is dispatched anywhere in the app, run the saga mentioned against it. Also, notice the `latest` modifier alongside the action name. It's equivalent of `takeLatest` from 'redux-saga'. You can also use `every` which would produce the same effect as `takeEvery` from 'redux-saga'.

## 4. index.js
It's the heart of a module which binds all the pieces together. It exports two things : a module and a container (which will be used in any component where you need this module).
Expand Down

0 comments on commit e8b1963

Please sign in to comment.