Closed jack1012t closed 6 years ago
Nevermind, I knew it was something really stupid once I changed the reducer_active_book.js file and got the same error. It was another file in the same directory named reducer_active_book (without extension) that I somehow saved and was getting pulled into the project rather than the .js file
I am getting this error despite setting the initial state to null. See below:
reducer_active_book.js:
reducers/index.js
console Uncaught Error: Reducer "activeBook" 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.