title: how to not get null values from ngrx store
body: <p>I am using nrgx/store package in angular 7.</p>
  
  <p>This is kind  of way how I get this currentAdAccount from store. the thing is I have this piece of code in multiple components. Now this piece of code is wrong because, something else that puts this value into store doesn't happen that fast and so this piece of code below at the first 1ms it returns null; then after 10ms, it returns the correct value. so In order to make this work, I gotta add this : <code>if(!currentAdAccount) return;</code> in the subscribe . </p>
  
  <pre><code>this.store.select(fromRoot.currentAdAccount).subscribe(currentAdAccount =&gt; {
        console.log("nice1", currentAdAccount);
       this.currentAdAccountId = currentAdAccount.value;
      })
  </code></pre>
  
  <p>So,in every place, it's not good to write if statements and checking the value is not null.</p>
  
  <p>QUestion 1) how do I only get values that are not null in a very easy way so that it doesn't get duplicated?</p>
  
  <p>QUestion 2) how do you deal with these kind of situations?</p>