Skip to content

Commit 124087c

Browse files
committed
counter example in README should match code in examples/
1 parent 94b6a48 commit 124087c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ export function incrementAsync() {
104104

105105
// Could also read state of a store in the callback form
106106
export function incrementIfOdd() {
107-
return (dispatch, { counter }) => {
107+
return (dispatch, getState) => {
108+
const { counter } = getState();
109+
108110
if (counter % 2 === 0) {
109111
return;
110112
}

0 commit comments

Comments
 (0)