See this example: https://github.com/facebook/react/issues/11508#issuecomment-345464797.

I think it probably reflects a misunderstanding of how props and state work, and we should detect and warn if we see this.
workInProgress.memoizedProps = newProps;
    workInProgress.memoizedState = newState;
  }
  
  
  instance.props = newProps;
  instance.state = newState;
  instance.context = nextLegacyContext;
  return shouldUpdate;
}
function updateClassInstance(
  current: Fiber,
  workInProgress: Fiber,
  ctor: any,
  newProps: any,
  renderExpirationTime: ExpirationTime,
): boolean {
  const instance = workInProgress.stateNode;
  const oldProps = workInProgress.memoizedProps;
  instance.props = oldProps;
  const oldContext = instance.context;
  const nextLegacyUnmaskedContext = getUnmaskedContext(
    workInProgress,
    ctor,
    true,
  );
  const nextLegacyContext = getMaskedContext(
    workInProgress,
    nextLegacyUnmaskedContext,