Skip to content

Commit b19f6c8

Browse files
adispringtimdorr
authored andcommitted
[docfix] Fix doc: if no deps, useActions should depend on [dispatch] (#1323)
1 parent cb5f64d commit b19f6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export function useActions(actions, deps) {
381381
return actions.map(a => bindActionCreators(a, dispatch))
382382
}
383383
return bindActionCreators(actions, dispatch)
384-
}, deps ? [dispatch, ...deps] : deps)
384+
}, deps ? [dispatch, ...deps] : [dispatch])
385385
}
386386
```
387387

0 commit comments

Comments
 (0)