Configure Redux Store
Last updated
Last updated
Redux in Soya Next uses 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 instead of 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 middleware instead.