Module: react-cmf/lib/reducers/settingsReducers

Methods

(static) attachRef()

if an object try to find _ref property and resolve it
Source:

(static) settingsReducers(state, action) → {object}

handle actions related to the settings
Parameters:
Name Type Description
state object initial state
action object redux aciton
Source:
Returns:
new state
Type
object

(inner) prepareSettings(originalSettings) → {object}

attach reference to produce a ready to use freezed object
Parameters:
Name Type Description
originalSettings object the full settings with `props` and `ref` attribute
Source:
Returns:
frozen settings with ref computed
Type
object