From 48135daf18425cbb4ac892f3c41c9e17e74fe68f Mon Sep 17 00:00:00 2001 From: klis87 Date: Sun, 7 Jun 2020 21:46:55 +0200 Subject: [PATCH] Fixed readme typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7b2463..da80830 100644 --- a/README.md +++ b/README.md @@ -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.