Closed jkurei closed 7 years ago
Hi, that is the case, we check to se if we have a toastr
fi we don't have that means is a immutablejs
object.
Here is the code
I will close but feel free to re-open in case you need but the only way I think you can get this error is if you don't have setup the reducer in the proper way
This may help others.
change
const rootReducer = combineReducers({ routing: routerReducer, toastrReducer, });
to:
const rootReducer = combineReducers({ routing: routerReducer, toastr: toastrReducer, });
for me the issue was I did: combineReducers({..., toaster: toastrReducer, }); toaster instead of toastr 😆
I'm trying to use this module and I've run against a few issues. The first one was this error:
Located in this line, in
node_modules/react-redux-toastr/lib/ReduxToastr.js
:I'm by no means a redux expert, but the only situation I know where
state
has aget
method is using librariesredux-immutablejs
. I don't thinkreact-redux-toastr
should assume the user is using immutable, if that's the case.