diff --git a/README.md b/README.md index 1ddf7f5..b8fb90c 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ let actions = store => ({ // ... or just actions that call store.setState() later: incrementAsync(state) { setTimeout( () => { - store.setState({ count: state.count+1 }) + store.setState({ count: store.getState().count+1 }) }, 100) } })