It doesn't work to dispatch thunk actions in production SSR. The following error occurs:
Error: Actions must be plain objects. Use custom middleware for async actions..
From what I can tell it's because the makeStore.js is never called in production SSR (createSSR.js). The store is created with:
const store = createStore(makeReducer(), iMap())
Middlewares are not applied during SSR.
It doesn't work to dispatch thunk actions in production SSR. The following error occurs:
Error: Actions must be plain objects. Use custom middleware for async actions.
.From what I can tell it's because the
makeStore.js
is never called in production SSR (createSSR.js
). The store is created with:const store = createStore(makeReducer(), iMap())
Middlewares are not applied during SSR.