1
Redux Thunk를 사용하면 첫 번째 'OK'로그는 정상이지만 프로세스는 두 번째 console.log로 이동하지 않습니다.Redux Thunk 반환 디스패치가 작동하지 않음
누구든지 무엇이 잘못되었는지 알고 계십니까? 당신은 dispatch(postTweet(body))
을해야 당신에게
export const postTweet = (body) => {
console.log('OK')
return dispatch => {
console.log('NO LOG')
}
}
redux-thunk 미들웨어를 추가 했습니까? – flq
예! 같은 문제가 https://stackoverflow.com/questions/47698595/react-redux-thunk-actions-does-not-return-dispatch –
에 동일한 문제가 발생하면 반송해야합니다. –