Module: react-cmf/lib/reducers/componentsReducers

Methods

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

Reducer on charge to manage component remote state.
Parameters:
Name Type Description
state object initial state
action object the executed action
Source:
Returns:
the new state
Type
object

(static) errorIfMergingStateDoesntExist(state, action)

given the state and action, determine if a component try to update a state namespace that doesn't exist, throw an errror at dev time since such a behavior may lead to unintended bug or runtime errors later on app execution.
Parameters:
Name Type Description
state Object the CMF application state
action Object a redux action
Source:

(static) warnIfAnotherComponentBind(state, action)

given the state and action, determine if another component try to bind to a specific component name space state and warn the user about this behaviour
Parameters:
Name Type Description
state Object the CMF application state
action Object a redux action
Source:

(static) warnIfRemovingStateDoesntExist(state, action)

given the state and action, determine if a component at unmount try to delete a state namespace that doesn't exist anymore and warn the user about this behavior
Parameters:
Name Type Description
state Object the CMF application state
action Object a redux action
Source: