Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 915 Bytes

File metadata and controls

31 lines (20 loc) · 915 Bytes

Config

The base configuration of your application is:

{ state, actions, effects }

When your application grows it will be necessary to split up your configuration. Overmind provides some helpers allowing you to structure and scale up your configuration.

merge

Allows you to merge configurations together.

h(Example, { name: "api/config_merge" })

Note that merge can be useful to combine a root configuration with namespaced configuration.

namespaced

Allows you to namespace configurations by a key.

h(Example, { name: "api/config_namespaced" })

lazy

You can also lazy load configurations. You do this by giving each configuration a key with a function that returns the config when called. To actually load the configurations you can either call an effect or an action with the key of the configuration to load.

h(Example, { name: "api/config_lazy" })