Reputation: 1238
using Redux Thunk, first log 'OK' is OK, but process doesn't go to second console.log.
Anyone knows what's wrong? Thank you
export const postTweet = (body) => {
console.log('OK')
return dispatch => {
console.log('NO LOG')
}
}
Upvotes: 6
Views: 2293
Reputation: 1238
You should do dispatch(postTweet(body))
. just calling postTweet
like postTweet(body) from component doesn't the trick.
Upvotes: 6