Skip to content

Commit

Permalink
ncc-compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Sep 24, 2024
1 parent aca35da commit 952c3a8
Show file tree
Hide file tree
Showing 60 changed files with 2,492 additions and 1,845 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3602,8 +3602,8 @@ function entangleAsyncAction(transition, thenable) {
}
function pingEngtangledActionScope() {
if (
null !== currentEntangledListeners &&
0 === --currentEntangledPendingCount
0 === --currentEntangledPendingCount &&
null !== currentEntangledListeners
) {
null !== currentEntangledActionThenable &&
(currentEntangledActionThenable.status = "fulfilled");
Expand Down Expand Up @@ -4555,14 +4555,26 @@ function startTransition(fiber, queue, pendingState, finishedState, callback) {
returnValue,
finishedState
);
dispatchSetState(fiber, queue, thenableForFinishedState);
} else dispatchSetState(fiber, queue, finishedState);
dispatchSetStateInternal(
fiber,
queue,
thenableForFinishedState,
requestUpdateLane(fiber)
);
} else
dispatchSetStateInternal(
fiber,
queue,
finishedState,
requestUpdateLane(fiber)
);
} catch (error) {
dispatchSetState(fiber, queue, {
then: function () {},
status: "rejected",
reason: error
});
dispatchSetStateInternal(
fiber,
queue,
{ then: function () {}, status: "rejected", reason: error },
requestUpdateLane()
);
} finally {
(ReactDOMSharedInternals.p = previousPriority),
(ReactSharedInternals.T = prevTransition);
Expand Down Expand Up @@ -4622,7 +4634,7 @@ function ensureFormComponentIsStateful(formFiber) {
}
function requestFormReset$1(formFiber) {
var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue;
dispatchSetState(formFiber, resetStateQueue, {});
dispatchSetStateInternal(formFiber, resetStateQueue, {}, requestUpdateLane());
}
function useHostTransitionStatus() {
return readContext(HostTransitionContext);
Expand Down Expand Up @@ -4673,15 +4685,18 @@ function dispatchReducerAction(fiber, queue, action) {
entangleTransitionUpdate(action, queue, lane)));
}
function dispatchSetState(fiber, queue, action) {
var lane = requestUpdateLane(),
update = {
lane: lane,
revertLane: 0,
action: action,
hasEagerState: !1,
eagerState: null,
next: null
};
var lane = requestUpdateLane();
dispatchSetStateInternal(fiber, queue, action, lane);
}
function dispatchSetStateInternal(fiber, queue, action, lane) {
var update = {
lane: lane,
revertLane: 0,
action: action,
hasEagerState: !1,
eagerState: null,
next: null
};
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
else {
var alternate = fiber.alternate;
Expand All @@ -4695,19 +4710,24 @@ function dispatchSetState(fiber, queue, action) {
eagerState = alternate(currentState, action);
update.hasEagerState = !0;
update.eagerState = eagerState;
if (objectIs(eagerState, currentState)) {
enqueueUpdate$1(fiber, queue, update, 0);
null === workInProgressRoot && finishQueueingConcurrentUpdates();
return;
}
if (objectIs(eagerState, currentState))
return (
enqueueUpdate$1(fiber, queue, update, 0),
null === workInProgressRoot && finishQueueingConcurrentUpdates(),
!1
);
} catch (error) {
} finally {
}
action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
null !== action &&
(scheduleUpdateOnFiber(action, fiber, lane),
entangleTransitionUpdate(action, queue, lane));
if (null !== action)
return (
scheduleUpdateOnFiber(action, fiber, lane),
entangleTransitionUpdate(action, queue, lane),
!0
);
}
return !1;
}
function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {
action = {
Expand Down Expand Up @@ -15171,14 +15191,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1651 = React.version;
if (
"19.0.0-experimental-e4953922-20240919" !==
"19.0.0-experimental-5d19e1c8-20240923" !==
isomorphicReactPackageVersion$jscomp$inline_1651
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1651,
"19.0.0-experimental-e4953922-20240919"
"19.0.0-experimental-5d19e1c8-20240923"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15200,11 +15220,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2111 = {
bundleType: 0,
version: "19.0.0-experimental-e4953922-20240919",
version: "19.0.0-experimental-5d19e1c8-20240923",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-experimental-e4953922-20240919"
reconcilerVersion: "19.0.0-experimental-5d19e1c8-20240923"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2112 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15308,4 +15328,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-experimental-e4953922-20240919";
exports.version = "19.0.0-experimental-5d19e1c8-20240923";
Loading

0 comments on commit 952c3a8

Please sign in to comment.