Skip to content

Commit

Permalink
fix readme type
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo-Marques committed Apr 30, 2018
1 parent 7e7cfd3 commit ecacff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import UserFetcher from 'fetchers/User'
// returns a callback to unsubscribe the middleware
const unsubscribe = UserFetcher.onSuccess(({ res, args }) => onUserFetchSuccess(res, idGetter(...args)))

function onUserFetchSuccess({ res }) {
function onUserFetchSuccess({ res }, id) {
console.log(`Got the user with the id ${id}!`, res)
}

Expand Down

0 comments on commit ecacff1

Please sign in to comment.