Get the value only if a new value comes after subscribing
<p>I am uisng ngrx/store.</p>

<pre><code>this.store
      .select(s =&gt; s.products &amp;&amp; s.products.name)
      .filter(name =&gt; !!name)
      .subscribe(name =&gt; {
        // Now if there is a `name` in the store, it will run immediately
        // However, I want to get the `name`, only if a new value comes after subscribing
        console.log(name);
      });
</code></pre>

<p>I tried to add <code>.publish()</code> before <code>.subscribe</code>, but then I cannot get any value.</p>

<p>How can I get <code>name</code>, only if a new value comes after subscribing? Thanks</p>