title: ngrx Reducer to change multiple states
body: <p>I can't find the way to create a reducer that changes multiple state, the API Rest returns nested data, which I normalize using normalizr library. Here is my code.</p>
  
  <p><strong>Api returns data:</strong></p>
  
  <pre><code>[
    {id: 1, firstName: 'CRISTIAN', lastName: 'QUISPE', country: {id: 1, name: 'PERU'}},
    {id: 2, firstName: 'ISRRAEL', lastName: 'ALCAZAR', country: {id: 10, name: 'ESPAÑA'}}
  ];
  </code></pre>
  
  <p><strong>Schema normalizr:</strong></p>
  
  <pre><code>import {schema} from 'normalizr';
  
  export const country = new schema.Entity('countries');
  export const person = new schema.Entity('people', {
    country: country
  });
  </code></pre>
  
  <p><strong>Normalized data:</strong>
  <a href="https://i.stack.imgur.com/vgOeV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vgOeV.png" alt="enter image description here"></a></p>
  
  <p><strong>State tree expected:</strong>
  <a href="https://i.stack.imgur.com/PTnT8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PTnT8.png" alt="enter image description here"></a></p>
  
  <p>Which should be the reducer that receives the data of the api rest and generates the previous state tree.</p>