@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
69
69
return self;
70
70
}
71
71
72
- var ReactVersion = "18.3.0-www-classic-2619886ac -20230105";
72
+ var ReactVersion = "18.3.0-www-classic-b83baf63f -20230105";
73
73
74
74
var LegacyRoot = 0;
75
75
var ConcurrentRoot = 1;
@@ -505,7 +505,6 @@ function getComponentNameFromFiber(fiber) {
505
505
return null;
506
506
}
507
507
508
- // Don't change these values. They're used by React Dev Tools.
509
508
var NoFlags =
510
509
/* */
511
510
0;
@@ -968,9 +967,9 @@ var now = Scheduler.unstable_now;
968
967
var ImmediatePriority = Scheduler.unstable_ImmediatePriority;
969
968
var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
970
969
var NormalPriority = Scheduler.unstable_NormalPriority;
971
- var IdlePriority = Scheduler.unstable_IdlePriority;
972
- // this doesn't actually exist on the scheduler, but it *does*
970
+ var IdlePriority = Scheduler.unstable_IdlePriority; // this doesn't actually exist on the scheduler, but it *does*
973
971
// on scheduler/unstable_mock, which we'll need for internal testing
972
+
974
973
var unstable_yieldValue = Scheduler.unstable_yieldValue;
975
974
var unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue;
976
975
@@ -3930,10 +3929,10 @@ function isRootDehydrated(root) {
3930
3929
return currentState.isDehydrated;
3931
3930
}
3932
3931
3933
- // TODO: Use the unified fiber stack module instead of this local one?
3934
3932
// Intentionally not using it yet to derisk the initial implementation, because
3935
3933
// the way we push/pop these values is a bit unusual. If there's a mistake, I'd
3936
3934
// rather the ids be wrong than crash the whole reconciler.
3935
+
3937
3936
var forkStack = [];
3938
3937
var forkStackIndex = 0;
3939
3938
var treeForkProvider = null;
@@ -4121,10 +4120,10 @@ function queueHydrationError(error) {
4121
4120
}
4122
4121
}
4123
4122
4124
- // If a render is in progress, and we receive an update from a concurrent event,
4125
4123
// we wait until the current render is over (either finished or interrupted)
4126
4124
// before adding it to the fiber/hook queue. Push to this array so we can
4127
4125
// access the queue, fiber, update, et al later.
4126
+
4128
4127
var concurrentQueues = [];
4129
4128
var concurrentQueuesIndex = 0;
4130
4129
var concurrentlyUpdatedLanes = NoLanes;
@@ -5700,12 +5699,11 @@ function resolveLazy(lazyType) {
5700
5699
var payload = lazyType._payload;
5701
5700
var init = lazyType._init;
5702
5701
return init(payload);
5703
- }
5704
-
5705
- // This wrapper function exists because I expect to clone the code in each path
5702
+ } // This wrapper function exists because I expect to clone the code in each path
5706
5703
// to be able to optimize each path individually by branching early. This needs
5707
5704
// a compiler or we can do it manually. Helpers that don't need this branching
5708
5705
// live outside of this function.
5706
+
5709
5707
function createChildReconciler(shouldTrackSideEffects) {
5710
5708
function deleteChild(returnFiber, childToDelete) {
5711
5709
if (!shouldTrackSideEffects) {
@@ -6829,6 +6827,7 @@ function resetChildFibers(workInProgress, lanes) {
6829
6827
6830
6828
// TODO: This isn't being used yet, but it's intended to replace the
6831
6829
// InvisibleParentContext that is currently managed by SuspenseContext.
6830
+
6832
6831
var currentTreeHiddenStackCursor = createCursor(null);
6833
6832
var prevRenderLanesStackCursor = createCursor(NoLanes);
6834
6833
function pushHiddenContext(fiber, context) {
@@ -6996,6 +6995,13 @@ function popSuspenseListContext(fiber) {
6996
6995
pop(suspenseStackCursor, fiber);
6997
6996
}
6998
6997
6998
+ // A non-null SuspenseState means that it is blocked for one reason or another.
6999
+ // - A non-null dehydrated field means it's blocked pending hydration.
7000
+ // - A non-null dehydrated field can use isSuspenseInstancePending or
7001
+ // isSuspenseInstanceFallback to query the reason for being dehydrated.
7002
+ // - A null dehydrated field means it's blocked by something suspending and
7003
+ // we're currently showing a fallback instead.
7004
+
6999
7005
function findFirstSuspended(row) {
7000
7006
var node = row;
7001
7007
@@ -7119,9 +7125,9 @@ function warnAboutMultipleRenderersDEV(mutableSource) {
7119
7125
}
7120
7126
} // Eager reads the version of a mutable source and stores it on the root.
7121
7127
7122
- var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue;
7123
- // An error that is thrown (e.g. by `use`) to trigger Suspense. If we
7128
+ var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; // An error that is thrown (e.g. by `use`) to trigger Suspense. If we
7124
7129
// detect this is caught by userspace, we'll log a warning in development.
7130
+
7125
7131
var SuspenseException = new Error(
7126
7132
"Suspense Exception: This is not a real error! It's an implementation " +
7127
7133
"detail of `use` to interrupt the current render. You must either " +
@@ -7279,9 +7285,8 @@ var didWarnAboutUseWrappedInTryCatch;
7279
7285
{
7280
7286
didWarnAboutMismatchedHooksForComponent = new Set();
7281
7287
didWarnAboutUseWrappedInTryCatch = new Set();
7282
- }
7288
+ } // These are set right before calling the component.
7283
7289
7284
- // These are set right before calling the component.
7285
7290
var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from
7286
7291
// the work-in-progress hook.
7287
7292
@@ -9011,10 +9016,8 @@ function updateLayoutEffect(create, deps) {
9011
9016
function imperativeHandleEffect(create, ref) {
9012
9017
if (typeof ref === "function") {
9013
9018
var refCallback = ref;
9014
-
9015
- var _inst = create();
9016
-
9017
- refCallback(_inst);
9019
+ var inst = create();
9020
+ refCallback(inst);
9018
9021
return function() {
9019
9022
refCallback(null);
9020
9023
};
@@ -9031,9 +9034,9 @@ function imperativeHandleEffect(create, ref) {
9031
9034
}
9032
9035
}
9033
9036
9034
- var _inst2 = create();
9037
+ var _inst = create();
9035
9038
9036
- refObject.current = _inst2 ;
9039
+ refObject.current = _inst ;
9037
9040
return function() {
9038
9041
refObject.current = null;
9039
9042
};
@@ -11312,9 +11315,9 @@ function checkClassInstance(workInProgress, ctor, newProps) {
11312
11315
);
11313
11316
}
11314
11317
11315
- var _state = instance.state;
11318
+ var state = instance.state;
11316
11319
11317
- if (_state && (typeof _state !== "object" || isArray(_state ))) {
11320
+ if (state && (typeof state !== "object" || isArray(state ))) {
11318
11321
error("%s.state: must be set to an object or null", name);
11319
11322
}
11320
11323
@@ -16968,9 +16971,9 @@ var AbortControllerLocal =
16968
16971
return listener();
16969
16972
});
16970
16973
};
16971
- };
16972
- // Intentionally not named imports because Rollup would
16974
+ }; // Intentionally not named imports because Rollup would
16973
16975
// use dynamic dispatch for CommonJS interop named imports.
16976
+
16974
16977
var scheduleCallback$1 = Scheduler.unstable_scheduleCallback,
16975
16978
NormalPriority$1 = Scheduler.unstable_NormalPriority;
16976
16979
var CacheContext = {
@@ -24118,8 +24121,9 @@ function getExecutionContext() {
24118
24121
}
24119
24122
// Warning, this opts-out of checking the function body.
24120
24123
// eslint-disable-next-line no-unused-vars
24121
-
24122
24124
// eslint-disable-next-line no-redeclare
24125
+ // eslint-disable-next-line no-redeclare
24126
+
24123
24127
function flushSync(fn) {
24124
24128
// In legacy mode, we flush pending passive effects at the beginning of the
24125
24129
// next event, not at the end of the previous one.
@@ -25534,8 +25538,8 @@ function flushPassiveEffectsImpl() {
25534
25538
pendingPassiveProfilerEffects = [];
25535
25539
25536
25540
for (var i = 0; i < profilerEffects.length; i++) {
25537
- var _fiber = profilerEffects[i];
25538
- commitPassiveEffectDurations(root, _fiber );
25541
+ var fiber = profilerEffects[i];
25542
+ commitPassiveEffectDurations(root, fiber );
25539
25543
}
25540
25544
}
25541
25545
@@ -26314,6 +26318,8 @@ function setIsRunningInsertionEffect(isRunning) {
26314
26318
}
26315
26319
26316
26320
/* eslint-disable react-internal/prod-error-codes */
26321
+ // Used by React Refresh runtime through DevTools Global Hook.
26322
+
26317
26323
var resolveFamily = null;
26318
26324
var failedBoundaries = null;
26319
26325
var setRefreshHandler = function(handler) {
@@ -26579,10 +26585,10 @@ function scheduleFibersWithFamiliesRecursively(
26579
26585
}
26580
26586
26581
26587
if (needsRemount || needsRender) {
26582
- var _root = enqueueConcurrentRenderForLane(fiber, SyncLane);
26588
+ var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
26583
26589
26584
- if (_root !== null) {
26585
- scheduleUpdateOnFiber(_root , fiber, SyncLane, NoTimestamp);
26590
+ if (root !== null) {
26591
+ scheduleUpdateOnFiber(root , fiber, SyncLane, NoTimestamp);
26586
26592
}
26587
26593
}
26588
26594
@@ -27601,6 +27607,8 @@ function createFiberRoot(
27601
27607
return root;
27602
27608
}
27603
27609
27610
+ // Might add PROFILE later.
27611
+
27604
27612
var didWarnAboutNestedUpdates;
27605
27613
27606
27614
{
0 commit comments