We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b08e0c5 commit dd919e5Copy full SHA for dd919e5
README.md
@@ -105,7 +105,7 @@ let actionFunctions = store => ({
105
106
// Remember that the state passed to the action function could be stale after
107
// doing async work, so use getState() instead:
108
- incrementAfterStuff(state) {
+ async incrementAfterStuff(state) {
109
const res = await fetch('foo.json')
110
const resJson = await res.json()
111
// the variable 'state' above could now be old,
0 commit comments