Currently, my redux setup (which utilizes Immutable.js for its state) functions completely as desired. However, the redux dev tools extension outputs the following error whenever the is opened:
An error occurred in the reducer TypeError: n.withMutations is not a function
For context, I'm using redux-immutable for its combine reducers function to, well, combine my react-router-redux reducer:
import { fromJS } from 'immutable';
import { LOCATION_CHANGE } from 'react-router-redux';
const initialState = fromJS({
locationBeforeTransitions: null,
});
export default (state = initialState, action) => {
if (action.type === LOCATION_CHANGE) {
return state.merge({
locationBeforeTransitions: action.payload,
});
}
return state;
};
and my business logic reducers.
UPDATE: Building the production bundle w/ webpack, testing the app in production mode (in a docker container), and testing the app again in development mode (on the local machine w/o docker) seems to have solved the problem? Odd...