runtime.state

  • Type: boolean | object
  • Default: false

Once state is enabled, you can use Model for state management.

The specific configuration options are as follows:

models

  • Type: Array<Model>
  • Default: []

Register model objects that are mounted in advance, and these models will be mounted immediately after the Reduck store is created. Generally, there is no need to mount in advance.

initialState

  • Type: Object
  • Default: {}

Used to set the initial state of the global store. Generally used for SSR to initialize data during the hydration phase.

immer

  • Type: boolean
  • Default: true

Whether to enable to update the state with mutable, it is enabled by default, and set to false if you want to disable it.

effects

  • Type: boolean
  • Default: true

Whether to enable the side effect management feature, it is enabled by default, and set to false if you want to disable it.

autoActions

  • Type: boolean
  • Default: true

Whether to enable the auto-generated actions feature, it is enabled by default, and set to false if you want to disable it.

devtools

  • Type: boolean | EnhancerOptions
  • Default: true

Whether to enable devtools, it is enabled by default, and all parameters of redux-devtools-extension are supported at the same time. If you want to disable it, set it to false.