[에러노트] Uncaught Error: The slice reducer for key ~ returned undefined during initialization.

지냐킴·2022년 8월 4일
0
post-thumbnail

1. 문제점

Uncaught Error: The slice reducer for key "DetailTodo" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.

2. 해결방법

모듈코드에서 default값 넣어주기

default:
      return state;
      

참고 사이트

profile
코린이일기

0개의 댓글

관련 채용 정보