(fiber, queue, pendingState, finishedState, callback)
| 8004 | return prevValue; |
| 8005 | } |
| 8006 | function startTransition(fiber, queue, pendingState, finishedState, callback) { |
| 8007 | var previousPriority = ReactDOMSharedInternals.p; |
| 8008 | ReactDOMSharedInternals.p = |
| 8009 | 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; |
| 8010 | var prevTransition = ReactSharedInternals.T, |
| 8011 | currentTransition = {}; |
| 8012 | ReactSharedInternals.T = currentTransition; |
| 8013 | dispatchOptimisticSetState(fiber, !1, queue, pendingState); |
| 8014 | try { |
| 8015 | var returnValue = callback(), |
| 8016 | onStartTransitionFinish = ReactSharedInternals.S; |
| 8017 | null !== onStartTransitionFinish && |
| 8018 | onStartTransitionFinish(currentTransition, returnValue); |
| 8019 | if ( |
| 8020 | null !== returnValue && |
| 8021 | "object" === typeof returnValue && |
| 8022 | "function" === typeof returnValue.then |
| 8023 | ) { |
| 8024 | var thenableForFinishedState = chainThenableValue( |
| 8025 | returnValue, |
| 8026 | finishedState |
| 8027 | ); |
| 8028 | dispatchSetStateInternal( |
| 8029 | fiber, |
| 8030 | queue, |
| 8031 | thenableForFinishedState, |
| 8032 | requestUpdateLane(fiber) |
| 8033 | ); |
| 8034 | } else |
| 8035 | dispatchSetStateInternal( |
| 8036 | fiber, |
| 8037 | queue, |
| 8038 | finishedState, |
| 8039 | requestUpdateLane(fiber) |
| 8040 | ); |
| 8041 | } catch (error) { |
| 8042 | dispatchSetStateInternal( |
| 8043 | fiber, |
| 8044 | queue, |
| 8045 | { then: function () {}, status: "rejected", reason: error }, |
| 8046 | requestUpdateLane() |
| 8047 | ); |
| 8048 | } finally { |
| 8049 | (ReactDOMSharedInternals.p = previousPriority), |
| 8050 | (ReactSharedInternals.T = prevTransition); |
| 8051 | } |
| 8052 | } |
| 8053 | function noop$2() {} |
| 8054 | function startHostTransition(formFiber, pendingState, action, formData) { |
| 8055 | if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476)); |
no test coverage detected
searching dependent graphs…