MCPcopy Create free account
hub / github.com/docker/getting-started / Transition

Function Transition

app/src/static/js/react-bootstrap.js:784–814  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

782 _inheritsLoose(Transition, _React$Component);
783
784 function Transition(props, context) {
785 var _this;
786
787 _this = _React$Component.call(this, props, context) || this;
788 var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears
789
790 var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
791 var initialStatus;
792 _this.appearStatus = null;
793
794 if (props.in) {
795 if (appear) {
796 initialStatus = EXITED;
797 _this.appearStatus = ENTERING;
798 } else {
799 initialStatus = ENTERED;
800 }
801 } else {
802 if (props.unmountOnExit || props.mountOnEnter) {
803 initialStatus = UNMOUNTED;
804 } else {
805 initialStatus = EXITED;
806 }
807 }
808
809 _this.state = {
810 status: initialStatus
811 };
812 _this.nextCallback = null;
813 return _this;
814 }
815
816 var _proto = Transition.prototype;
817

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…