guymoon / hello-waterski

⚛️ 수상스키에 관련된 서비스를 제공합니다.
0 stars 0 forks source link

reducer안에서 console.log(state) 하면 확인 할 수 없는 이슈. #59

Closed guymoon closed 2 years ago

guymoon commented 2 years ago

문제

    .addCase(`${useditemAsyncAction.postUseditem.success}`, (state, action) => {
      console.log(state); //아래와 같이 나옴
      }

Screen Shot 2021-11-27 at 8 31 13 PM

해결 방법

Redux toolkit includes the immer current function specifically for this purpose. console.log(current(state))