title: How do I access Redux items using selectors after I've normalized my store?
body: <p>I'm a bit confused on how I'm supposed to use selectors after I've normalized my Redux store. </p>
  
  <p>I have the following setup for my store:</p>
  
  <pre><code>const DEFAULT_STATE = {
    allId: [],
    locations: {}
  };
  </code></pre>
  
  <p>With the following for my reducer:</p>
  
  <pre><code>handleActions({
    ['UPDATE']: (state, action) =&gt; {
      let newID = state.allId.length;
  
      const allId = [...state.allId, newID];
      const locations = {
        ...state.locations,
        [newID]: action.payload
      };
      return {allId, locations};
    }
  }),
  ...
  </code></pre>
  
  <p>I figured I would want something like this for my component:</p>
  
  <pre><code>function mapStateToProps(state) {
    return {
      share: callMySelector(state)
    };
  }
  </code></pre>
  
  <p>But I don't see how my selector would do anything except return the <code>location</code> associated with the most recent ID. I'm thinking that normalizing is also not that great here - because I wouldn't end up searching by ID in a regular case.</p>