Skip to content

Commit

Permalink
docs(handlers): small update
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-beteille committed Nov 9, 2017
1 parent d386848 commit b9e3b14
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 @@ -101,7 +101,7 @@ store.registerFX('fetch', (params, getState, dispatch) => {
The first argument is the handler's id, it needs to be the same as the key used in the Effects map to describe the side effect you want to perform. In this case 'fetch'.

The second argument is the effect handler, the function that will perform this side effect.
This function will take 3 parameters when called:
This function will be given 3 parameters when called:
- the description of the effect to run (from the Effects map you returned in the reducer)
- getState: useful if you need to access your state here
- dispatch: so you can dispatch new actions from there
Expand Down

0 comments on commit b9e3b14

Please sign in to comment.