질문 있습니다.
지금 강의 복습하면서 하는거라서 redux-saga 를 현재 쓰고있는 상태입니다. function myLocationAPI (latLong) { return axios . get ( `https://dapi.kakao.com/v2/local/geo/coord2address.json?x= ${latLong. long } &y= ${latLong. lat } ` , { headers : { "Authorization" : "test" , } , }) ; } function * myLocation (action) { try { const result = yield call ( myLocationAPI , action. data ) ; yield put ({ type : MY_LOCATION_SUCCESS , data : result. data .documents[ 0 ] }) ; } catch (e) { yield put ({ type : MY_LOCATION_FAILURE , error : e , }) ; } } function * watchMyLocation () { yield takeLatest ( MY_LOCATION_REQUEST , myLocation ) ; } const {mainCardPics , myLocation} = useSelector (state => state. user ) ; dispatch({ type : MY_LOCATION_REQUEST , data : { lat : position. coords . latitude , long : position. coords . longitude , } , }) ; console . log ( "dong : " , myLocation) ; dispatch({ type : GET_POSTS_REQUEST , data : { dong : myLocation. dong , } , }) ; dispatch 액션이 끝나면 myLocation 에 결과 값이 담겨야 되지 않나요? 근데 위와 같이 하면 빈 객체가 콘솔에 나와서요