Modules: entityViewReducer

Members


<constant> entityViewReducer

A reducer that contains a reference to a single entity that is currently in view.

Source:

Methods


makeEntitySelector()

Returns a new selector to get the entity data that is referenced in the given entityViewReducer state. This selector will look up the referenced data in the 'entities' reducer. For that reason, this returned selector should be passed both the root reducer state and the entityViewReducer state.

Source:
Returns:

A reselect selector function

Type
function
Example
const entitySelector = makeEntitySelector();
const currentFeaturedArticle = entitySelector(state, state.pages.home.featuredArticle);