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.
);
    if (
      require('shared/ReactFeatureFlags')
        .deferPassiveEffectCleanupDuringUnmount &&
      require('shared/ReactFeatureFlags')
        .runAllPassiveEffectDestroysBeforeCreates
    ) {
      it('defers passive effect destroy functions during unmount', () => {
        function Child({bar, foo}) {
          React.useEffect(() => {
            Scheduler.unstable_yieldValue('passive bar create');
            return () => {
              Scheduler.unstable_yieldValue('passive bar destroy');
            };
          }, [bar]);
          React.useLayoutEffect(() => {
            Scheduler.unstable_yieldValue('layout bar create');
            return () => {
              Scheduler.unstable_yieldValue('layout bar destroy');
            };
          }, [bar]);
          React.useEffect(() => {
            Scheduler.unstable_yieldValue('passive foo create');
            return () => {
              Scheduler.unstable_yieldValue('passive foo destroy');
            };
          }, [foo]);
          React.useLayoutEffect(() => {
            Scheduler.unstable_yieldValue('layout foo create');
            return () => {