Intended behavior: https://github.com/reactwg/react-18/discussions/31

Sandbox: https://codesandbox.io/s/react-18-layouteffect-semantics-forked-m02w5

Expected: when suspended content is hidden and then shown, we get layout cleanup followed by layout setup.
Actual: only layout cleanup happens.


finishedWork.flags &= ~Hydrating;
      break;
    }
    case HydratingAnd: {
      finishedWork.flags &= ~Hydrating;
       
      const current = finishedWork.alternate;
      commitWork(current, finishedWork);
      break;
    }
    case : {
      const current = finishedWork.alternate;
      commitWork(current, finishedWork);
      break;
    }
  }
}
export function commitLayoutEffects(
  finishedWork: Fiber,
  root: FiberRoot,
  committedLanes: Lanes,
): void {
  inProgressLanes = committedLanes;
  inProgressRoot = root;
  nextEffect = finishedWork;
  commitLayoutEffects_begin(finishedWork, root, committedLanes);
  inProgressLanes = null;
  inProgressRoot = null;
}
function commitLayoutEffects_begin(