title: Using ngrx to obtain store's current state once
body: <p>Hi I was wondering if anyone know how to get a store's current state once without having to subscribe to it. I'm currently using ngrx to subscribe to the store and access its state to set a component's attribute, but since I'm subscribed this attribute is constantly refreshing. So I'm looking for a way to obtain this attribute just once so that I can display data without it refreshing constantly.  </p>
  
  <p>Just in case, this happens inside my component's constructor. </p>
  
  <p>I've been trying something like this:</p>
  
  <p><code>_store.select('storeData.correlationData');</code></p>
  
  <p>When subscribing I would access like this:</p>
  
  <pre><code>_store.subscribe(
    (state) =&gt; {
      this.correlationData = state.storeData.correlationData;
    }
  );
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Applciation State:</p>
  
  <pre><code>export interface ApplicationState {
    uiState: UiState;
    storeData: StoreData;
  }
  </code></pre>