You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: