class="kd">function</span> <span class="nf">getOnTickFn</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">return </span><span class="p">()</span> <span class="o">=&gt;</span> <span class="p">{</span>
      <span class="c1">// Update count in UI.</span>
      <span class="nx">store</span><span class="p">.</span><span class="nf">dispatch</span><span class="p">({</span>
        <span class="na">type</span><span class="p">:</span> <span class="dl">"</span><span class="s2">setCount</sp