Reducer for actions.lookup actions.
State segment managed by this reducer has the following structure:
Param | Type | Default | Description |
---|---|---|---|
skillTags | Array |
'' |
skill tags. |
- reducers.lookup
- static
- .default
- .factory() ⇒
Promise
- inner
- ~onGetSkillTagsDone(state, action) ⇒
Object
- ~onGetCountriesDone(state, action) ⇒
Object
- ~create(initialState) ⇒
function
- ~onGetSkillTagsDone(state, action) ⇒
- static
Reducer with default initial state.
Kind: static property of reducers.lookup
Factory which creates a new reducer.
Kind: static method of reducers.lookup
Resolves: Function(state, action): state
New reducer.
Handles LOOKUP/GET_SKILL_TAGS_DONE action.
Kind: static method of reducers.lookup
Resolves: Function(state, action): state
New reducer.
Handles LOOKUP/GET_COUNTRIES_DONE action.
Kind: inner method of reducers.lookup
Returns: Object
- New state
Param | Type | Description |
---|---|---|
state | Object |
|
action | Object |
Payload will be JSON from api call |
Creates a new Lookup reducer with the specified initial state.
Kind: inner method of reducers.lookup
Returns: function
- Lookup reducer.
Param | Type | Description |
---|---|---|
initialState | Object |
Optional. Initial state. |