Skip to content

Commit

Permalink
Fixed readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
klis87 committed Jun 7, 2020
1 parent c4caf8e commit 48135da
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 @@ -88,7 +88,7 @@ const doSth = createThunk('DO_STH', () => (dispatch, getState) => {
})
```

So what changed? `doSth.toString === 'DO_STH'`, so you can use `doSth` in reducers directly,
So what changed? `doSth.toString() === 'DO_STH'`, so you can use `doSth` in reducers directly,
like constants didn't even exist. Also notice that we do not dispatch `{ x: state.x }` action,
we return it, `createThunk` will add `type` for us and dispatch it automatically.

Expand Down

0 comments on commit 48135da

Please sign in to comment.