NavigationReactMobile/sample/react-dom.js
// Invokes the mount life-cycles on a previously never rendered instance.
Invokes the mount life-cycles on a previously never rendered instance.
Invokes the mount life - cycles on a previously never rendered instance .
function mountClassInstance(workInProgress, renderExpirationTime) {
    var ctor = workInProgress.type;
    var current = workInProgress.alternate;
    {
      checkClassInstance(workInProgress);
    }
    var instance = workInProgress.stateNode;
    var props = workInProgress.pendingProps;
    var unmaskedContext = getUnmaskedContext(workInProgress);
    instance.props = props;
    instance.state = workInProgress.memoizedState;
    instance.refs = emptyObject_1;
    instance.context = getMaskedContext(workInProgress, unmaskedContext);
    {
      if (workInProgress.mode & StrictMode) {
        ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
      }
      if (warnAboutDeprecatedLifecycles) {
        ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance);
      }
    }
    if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
      callComponentWillMount(workInProgress, instance);
      var updateQueue = workInProgress.updateQueue;
      if (updateQueue !== null) {
        instance.state = processUpdateQueue(current, workInProgress, updateQueue, instance, props, renderExpirationTime);
      }
    }
    if (typeof instance.componentDidMount === 'function') {
      workInProgress.effectTag |= Update;
    }
  }
function mountClassInstance ( workInProgress , renderExpirationTime ) { var ctor = workInProgress . type ; var current = workInProgress . alternate ; { checkClassInstance ( workInProgress ) ; } var instance = workInProgress . stateNode ; var props = workInProgress . pendingProps ; var unmaskedContext = getUnmaskedContext ( workInProgress ) ; instance . props = props ; instance . state = workInProgress . memoizedState ; instance . refs = emptyObject_1 ; instance . context = getMaskedContext ( workInProgress , unmaskedContext ) ; { if ( workInProgress . mode & StrictMode ) { ReactStrictModeWarnings . recordUnsafeLifecycleWarnings ( workInProgress , instance ) ; } if ( warnAboutDeprecatedLifecycles ) { ReactStrictModeWarnings . recordDeprecationWarnings ( workInProgress , instance ) ; } } if ( typeof ctor . getDerivedStateFromProps !== 'function' && typeof instance . getSnapshotBeforeUpdate !== 'function' && ( typeof instance . UNSAFE_componentWillMount === 'function' || typeof instance . componentWillMount === 'function' ) ) { callComponentWillMount ( workInProgress , instance ) ; var updateQueue = workInProgress . updateQueue ; if ( updateQueue !== null ) { instance . state = processUpdateQueue ( current , workInProgress , updateQueue , instance , props , renderExpirationTime ) ; } } if ( typeof instance . componentDidMount === 'function' ) { workInProgress . effectTag |= Update ; } }
Invokes the mount life-cycles on a previously never rendered instance.
Invokes the mount life - cycles on a previously never rendered instance .
// In order to support react-lifecycles-compat polyfilled components, // Unsafe lifecycles should not be invoked for components using the new APIs. // If we had additional state updates during this life-cycle, let's // process them now.