Open pjnovas opened 4 years ago
I've found a workaround for this error which I describe below for anyone else, but firstRouter() should be a serializable action, right?
If you are using redux-starter-kit
, you can turn off this error by setting
serializableCheck
to false as option for getDefaultMiddleware
.
I'm getting an error from redux as soon as I dispatch
firstRoute
Action, I guess it's becausecommit
inside it is a function/ promise to render react after it.It tells me to see: https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants
Is there a workaround? or another way of lifting the router without dispatching a non serializable action?
After that everything seems to work fine. Thanks!