Skip to content

Commit dd919e5

Browse files
Add missing async keyword in README example (#189)
1 parent b08e0c5 commit dd919e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ let actionFunctions = store => ({
105105

106106
// Remember that the state passed to the action function could be stale after
107107
// doing async work, so use getState() instead:
108-
incrementAfterStuff(state) {
108+
async incrementAfterStuff(state) {
109109
const res = await fetch('foo.json')
110110
const resJson = await res.json()
111111
// the variable 'state' above could now be old,

0 commit comments

Comments
 (0)