title: ngxs: Access different state within Action
body: <p>Is it possible to access a different state within a action?</p>
  
  <p>Scenario:
  I have two states:</p>
  
  <ul>
  <li>FilterState</li>
  <li>AppState</li>
  </ul>
  
  <p><code>FilterState</code> contains an action <code>Filter</code>, when the filter action is triggered, then the <code>filterService</code> is called with the payload of the action + with a value from the <code>AppState</code>.</p>
  
  <pre><code>@Action(Filter)
  filter(ctx, action) {
    // HOW TO GET VALUE FROM AppState
  
    return this.filterService.filter(action, valueFromOtherStore).pipe(
      tap(data =&gt; {
      // Do something with result
      })
    );
  }
  </code></pre>
  
  <p>How is it possible to retrieve values from a different state to apply this value to the second param of <code>this.filterService.filter</code>?</p>