Sandbox: https://codesandbox.io/s/cranky-kapitsa-op3jh

Repro: type "a" and then after a second "b"

Expected: Eventually you'll see "ab" in all fields. Pending "..." indicator goes away.

Actual: You'll keep seeing "a" in low pri field. Pending "..." indicator is stuck.
Scheduler.unstable_yieldValue('passive destroy');
            };
          }, []);
          return state;
        }
        act(() => {
          ReactNoop.renderToRootWithID(<Component />, 'root', () =>
            Scheduler.unstable_yieldValue('Sync effect'),
          );
        });
        expect(Scheduler).toHaveYielded([
          'Component',
          'Sync effect',
          'passive create',
        ]);
        ReactNoop.unmountRootWithID('root');
        expect(Scheduler).toFlushAndYield(['passive destroy']);
        act(() => {
          expect(() => {
            updaterFunction(true);
          }).toErrorDev(
            "Warning: Can't perform a React state update on an unmounted component. " +
              'This is a no-op, but it indicates a memory leak in your application. ' +
              'To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.\n' +
              '    in Component (at **)',
          );
        });
      });
      it('does not show a warning when a component updates its own state from within passive unmount function', () => {
        function Component() {