Methods
(static) getId()
Get element id. If it doesn't have "id" property, we consider it as immutable.
- Source:
(inner) addCollectionElement(state, action) → {object}
addElementToCollection
Parameters:
Name | Type | Description |
---|---|---|
state |
current redux state | |
action |
redux action |
- Source:
Returns:
the new state
- Type
- object
(inner) collectionsReducers(state, action) → {object}
Parameters:
Name | Type | Description |
---|---|---|
state |
object | the state |
action |
object | redux action |
- Source:
Returns:
the new state
- Type
- object
(inner) deleteCollectionElement(state, action) → {object}
deleteElementFromCollection
Parameters:
Name | Type | Description |
---|---|---|
state |
current redux state | |
action |
redux action |
- Source:
Returns:
the new state
- Type
- object
(inner) mutateCollection(state, action) → {object}
mutateCollection
Parameters:
Name | Type | Description |
---|---|---|
state |
object | the current redux state |
action |
object | redux action |
- Source:
Returns:
the new state
- Type
- object
(inner) updateCollectionElement(state, action) → {object}
updateCollectionElement
Parameters:
Name | Type | Description |
---|---|---|
state |
current redux state | |
action |
redux action |
- Source:
Returns:
the new state
- Type
- object