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 6642462 commit e5ed5bcCopy full SHA for e5ed5bc
docs/usage/usage-guide.md
@@ -621,14 +621,14 @@ A typical implementation might look like:
621
const getRepoDetailsStarted = () => ({
622
type: "repoDetails/fetchStarted"
623
})
624
-const getRepoDetailsSuccess = (repoDetails) => {
+const getRepoDetailsSuccess = (repoDetails) => ({
625
type: "repoDetails/fetchSucceeded",
626
payload: repoDetails
627
-}
628
-const getRepoDetailsFailed = (error) => {
+})
+const getRepoDetailsFailed = (error) => ({
629
type: "repoDetails/fetchFailed",
630
error
631
632
const fetchIssuesCount = (org, repo) => async dispatch => {
633
dispatch(getRepoDetailsStarted())
634
try {
0 commit comments