리덕스 툴킷 사용시 발생할 수 있는 오류
A non-serializable value was detected in the state, in the path: `expenses.expenses.0.date`. Value: 2024-05-12T00:00:00.000Z Take a look at the reducer(s) handling this action type: expenses/updateExpense.
RTK non-serializable value 오류 해결 방법
Redux를 사용하며 non-serializable value 오류 해결과정 기록
velog.io
해결방법
- store에 middleware 추가
export const store = configureStore({
reducer: {
expenses: expenseReducer,
},
middleware: getDefaultMiddleware =>
getDefaultMiddleware({serializableCheck: false}),
});