(props, context)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…