Configure Redux Store
Redux in Soya Next uses redux-thunk as its middleware and is configured to enable automatic code splitting. Also, the devtools in Soya Next is always enabled but is restricted to log only in production. If you wanted to change the configured Redux store, there are three things that you need to do.
The following guide will show you how to configure your Redux store to use redux-saga instead of redux-thunk middleware.
First, you need to create your own createConfigureStore
like the following:
Then, create a createPage
using the configured store like the following:
Finally, replace Soya Next createPage
with your own:
Now, your Redux store is implemented using redux-saga middleware instead.
Last updated