<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">feature</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto"><a href="https://codesandbox.io/s/zn7p0168vp" rel="nofollow">https://codesandbox.io/s/zn7p0168vp</a></p>
<p dir="auto">Wrapping in <code class="notranslate">act</code> doesn't help because <code class="notranslate">setState</code> is called later, on another tick, so warning is printed in a console.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Some way to test code like this without getting warning in a console about wrapping inside <code class="notranslate">act</code>.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p>
<p dir="auto">16.8.0</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">bug</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">If a component performs a second (non user triggered) update, <code class="notranslate">act</code> cannot detect it and warns about the update.</p>
<p dir="auto">For example, a button is clicked and updates its text. After a second, the button resets and its text reverts to its original state.</p>
<p dir="auto"><a href="https://codesandbox.io/s/6xkyl37x7k?previewwindow=tests" rel="nofollow">https://codesandbox.io/s/6xkyl37x7k?previewwindow=tests</a></p>
<p dir="auto">(The reproduction is a bit contrived, but demonstrates the issue.)</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">The test runs without warning about being wrapped in <code class="notranslate">act</code>.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p>
<p dir="auto">React &amp; React DOM @ <code class="notranslate">16.8.0</code></p>