[에러노트] defaultState for reducer handling [object Object] should be defined
리덕스 스터디중 handleAction을 사용하던 중 해당 소스에서 다음과 같은 에러가 발생함 // 리덕스 모듈 import { createAction, handleAction } from 'redux-actions' const INCREASE = 'counter/INCREASE' const DECREASE = 'counter/DE
wazacs.tistory.com
이러한 에러가 나타나는 이유는 액션이 2개 이상이기 때문.
2개 이상의 액션을 처리하려면 handleAction => handleActions로 변경한다.
그러면 에러가 해결된다 .
어느 소스에 이슈가 있는지 확인
가보니 액션이 2개인데 handleAction으로 선언했었음. 해결!
'개인프로젝트 > 이슈정리' 카테고리의 다른 글
export 'withRouter' (imported as 'withRouter') was not found in 'react-router-dom' (1) | 2023.11.12 |
---|---|
Uncaught (in promise) Error: Illegal argument undefined (0) | 2023.11.12 |
Command failed with exit code 127 (2) | 2023.11.12 |
Redux toolkit. Uncaught Error: uSES not initialized (0) | 2023.11.12 |
MongoParseError: option usefindandmodify is not supported (0) | 2023.11.11 |