Redux is the standard for managing state when it comes to React applications. RapidAdminReact® comes pre-configured with Redux for better state management. When you wrap your application within <RapidMain>
component you are already create a Redux store and can use the actions and the reducers as well.
Redux Configuration
Redux comes preconfigured along with RapidAdminReact. You can mamange all the configuratoin settings related to redux usingg the configuration files in the src/config/redux
directory. Here is a list of all the configuration files available.
./config
├── redux
│ ├── devToolsOptions.js
│ ├── middleware.js
│ ├── reduxStoreCreator.js
│ ├── storeEnhancers.js
│ └── whitelistReducers.js
Disabling Redux
Redux is by default enabled in RapidAdminReact. Just in case you do not need Redux and want to disable it you can do so in the configuration file. Once disbaled, redux would not be included in your build. This is how you can disbale Redux/
1. Open the settings file
./config
├── rapidAdmin
└── settings.js
2. Set redux:
to false
config : {
redux : false , // set to false if you want to disable Redux in your application
} ,