7
7
* @noflow
8
8
* @nolint
9
9
* @preventMunge
10
- * @generated SignedSource<<7279cc9cb0c567689cd8628192884a45 >>
10
+ * @generated SignedSource<<487e4d25726d3b9452e5df47a0ff70f5 >>
11
11
*/
12
12
13
13
"use strict";
14
14
__DEV__ &&
15
15
(function () {
16
- function JSCompiler_object_inline_createNodeMock_1088 () {
16
+ function JSCompiler_object_inline_createNodeMock_1089 () {
17
17
return null;
18
18
}
19
19
function findHook(fiber, id) {
@@ -1789,28 +1789,41 @@ __DEV__ &&
1789
1789
0 === root.tag &&
1790
1790
(ReactSharedInternals.didScheduleLegacyUpdate = !0);
1791
1791
}
1792
- function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
1792
+ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
1793
1793
if (!isFlushingWork && mightHavePendingSyncWork) {
1794
1794
isFlushingWork = !0;
1795
1795
do {
1796
1796
var didPerformSomeWork = !1;
1797
1797
for (var root = firstScheduledRoot; null !== root; ) {
1798
- if (!onlyLegacy || 0 === root.tag) {
1799
- var workInProgressRootRenderLanes$jscomp$0 =
1800
- workInProgressRootRenderLanes;
1801
- workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
1802
- root,
1803
- root === workInProgressRoot
1804
- ? workInProgressRootRenderLanes$jscomp$0
1805
- : 0
1806
- );
1807
- 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) &&
1808
- ((didPerformSomeWork = !0),
1809
- performSyncWorkOnRoot(
1810
- root,
1811
- workInProgressRootRenderLanes$jscomp$0
1812
- ));
1813
- }
1798
+ if (!onlyLegacy || 0 === root.tag)
1799
+ if (0 !== syncTransitionLanes) {
1800
+ var pendingLanes = root.pendingLanes;
1801
+ if (0 === pendingLanes) var nextLanes = 0;
1802
+ else {
1803
+ var suspendedLanes = root.suspendedLanes,
1804
+ pingedLanes = root.pingedLanes;
1805
+ nextLanes =
1806
+ (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
1807
+ nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes);
1808
+ nextLanes =
1809
+ nextLanes & 201326677
1810
+ ? (nextLanes & 201326677) | 1
1811
+ : nextLanes
1812
+ ? nextLanes | 2
1813
+ : 0;
1814
+ }
1815
+ 0 !== nextLanes &&
1816
+ ((didPerformSomeWork = !0),
1817
+ performSyncWorkOnRoot(root, nextLanes));
1818
+ } else
1819
+ (nextLanes = workInProgressRootRenderLanes),
1820
+ (nextLanes = getNextLanes(
1821
+ root,
1822
+ root === workInProgressRoot ? nextLanes : 0
1823
+ )),
1824
+ 0 !== (nextLanes & 3) &&
1825
+ ((didPerformSomeWork = !0),
1826
+ performSyncWorkOnRoot(root, nextLanes));
1814
1827
root = root.next;
1815
1828
}
1816
1829
} while (didPerformSomeWork);
@@ -1822,6 +1835,7 @@ __DEV__ &&
1822
1835
didScheduleMicrotask_act =
1823
1836
didScheduleMicrotask =
1824
1837
!1;
1838
+ 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);
1825
1839
for (
1826
1840
var currentTime = now$1(), prev = null, root = firstScheduledRoot;
1827
1841
null !== root;
@@ -1837,8 +1851,7 @@ __DEV__ &&
1837
1851
0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0));
1838
1852
root = next;
1839
1853
}
1840
- currentEventTransitionLane = 0;
1841
- flushSyncWorkAcrossRoots_impl(!1);
1854
+ flushSyncWorkAcrossRoots_impl(0, !1);
1842
1855
}
1843
1856
function scheduleTaskForRootDuringMicrotask(root, currentTime) {
1844
1857
for (
@@ -10536,7 +10549,7 @@ __DEV__ &&
10536
10549
0 !== (fiber.mode & 1) ||
10537
10550
ReactSharedInternals.isBatchingLegacy ||
10538
10551
((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS),
10539
- flushSyncWorkAcrossRoots_impl(!0));
10552
+ flushSyncWorkAcrossRoots_impl(0, !0));
10540
10553
}
10541
10554
function performConcurrentWorkOnRoot(root, didTimeout) {
10542
10555
nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -10861,12 +10874,12 @@ __DEV__ &&
10861
10874
(ReactSharedInternals.T = prevTransition),
10862
10875
(executionContext = prevExecutionContext),
10863
10876
(executionContext & (RenderContext | CommitContext)) === NoContext &&
10864
- flushSyncWorkAcrossRoots_impl(!1);
10877
+ flushSyncWorkAcrossRoots_impl(0, !1);
10865
10878
}
10866
10879
}
10867
10880
function flushSyncWork() {
10868
10881
return (executionContext & (RenderContext | CommitContext)) === NoContext
10869
- ? (flushSyncWorkAcrossRoots_impl(!1), !1)
10882
+ ? (flushSyncWorkAcrossRoots_impl(0, !1), !1)
10870
10883
: !0;
10871
10884
}
10872
10885
function resetWorkInProgressStack() {
@@ -11549,7 +11562,7 @@ __DEV__ &&
11549
11562
? nestedUpdateCount++
11550
11563
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
11551
11564
: (nestedUpdateCount = 0);
11552
- flushSyncWorkAcrossRoots_impl(!1);
11565
+ flushSyncWorkAcrossRoots_impl(0, !1);
11553
11566
markCommitStopped();
11554
11567
return null;
11555
11568
}
@@ -11679,7 +11692,7 @@ __DEV__ &&
11679
11692
injectedProfilingHooks.markPassiveEffectsStopped();
11680
11693
commitDoubleInvokeEffectsInDEV(priority, !0);
11681
11694
executionContext = prevExecutionContext;
11682
- flushSyncWorkAcrossRoots_impl(!1);
11695
+ flushSyncWorkAcrossRoots_impl(0, !1);
11683
11696
didScheduleUpdateDuringPassiveEffects
11684
11697
? priority === rootWithPassiveNestedUpdates
11685
11698
? nestedPassiveUpdateCount++
@@ -14925,11 +14938,11 @@ __DEV__ &&
14925
14938
(function () {
14926
14939
var internals = {
14927
14940
bundleType: 1,
14928
- version: "19.0.0-native-fb-85fb95cd-20240816 ",
14941
+ version: "19.0.0-native-fb-ee7f6757-20240823 ",
14929
14942
rendererPackageName: "react-test-renderer",
14930
14943
currentDispatcherRef: ReactSharedInternals,
14931
14944
findFiberByHostInstance: getInstanceFromNode,
14932
- reconcilerVersion: "19.0.0-native-fb-85fb95cd-20240816 "
14945
+ reconcilerVersion: "19.0.0-native-fb-ee7f6757-20240823 "
14933
14946
};
14934
14947
internals.overrideHookState = overrideHookState;
14935
14948
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -14951,7 +14964,7 @@ __DEV__ &&
14951
14964
exports._Scheduler = Scheduler;
14952
14965
exports.act = act;
14953
14966
exports.create = function (element, options) {
14954
- var createNodeMock = JSCompiler_object_inline_createNodeMock_1088 ,
14967
+ var createNodeMock = JSCompiler_object_inline_createNodeMock_1089 ,
14955
14968
isConcurrent = !1,
14956
14969
isStrictMode = !1;
14957
14970
"object" === typeof options &&
@@ -15071,8 +15084,8 @@ __DEV__ &&
15071
15084
executionContext !== NoContext ||
15072
15085
ReactSharedInternals.isBatchingLegacy ||
15073
15086
((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS),
15074
- flushSyncWorkAcrossRoots_impl(!0));
15087
+ flushSyncWorkAcrossRoots_impl(0, !0));
15075
15088
}
15076
15089
};
15077
- exports.version = "19.0.0-native-fb-85fb95cd-20240816 ";
15090
+ exports.version = "19.0.0-native-fb-ee7f6757-20240823 ";
15078
15091
})();
0 commit comments