Skip to content

Files

Latest commit

e13c3e2 · Mar 20, 2019

History

History
67 lines (46 loc) · 2.55 KB

reducers.lookup.md

File metadata and controls

67 lines (46 loc) · 2.55 KB

reducers.lookup

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.default

Reducer with default initial state.

Kind: static property of reducers.lookup

reducers.lookup.factory() ⇒ Promise

Factory which creates a new reducer.

Kind: static method of reducers.lookup
Resolves: Function(state, action): state New reducer.

reducers.lookup~onGetSkillTagsDone(state, action) ⇒ Object

Handles LOOKUP/GET_SKILL_TAGS_DONE action.

Kind: static method of reducers.lookup
Resolves: Function(state, action): state New reducer.

reducers.lookup~onGetCountriesDone(state, action) ⇒ Object

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

reducers.lookup~create(initialState) ⇒ function

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.