title: Actions/state to load data from backend
body: <p>I've just started experimenting with <code>ngxs</code> but from my reading so far I'm not 100% clear on where I should be calling back to my API to persist and read data (all examples I've seen are either not doing it, or using some mock).</p>
  
  <p>E.g. I've created a state where I maintain a list of items.  When I want to add an item, I dispatch the 'AddItem` action to the store, where I add that new item to the state.  This all works ok - the question is where is the appropriate place to plug in the call that POSTs the item to the server? </p>
  
  <p>Should I call the API in my action implementation i.e. just before I update the store's item list.</p>
  
  <p>Or should I call the API in my Angular component (via a service), then dispatch the 'Add Item' action when I received a response?</p>
  
  <p>I'm quite new to this area, so any guidance or pros/cons of these approaches would be great.</p>