[bug fix] revert values in ReactFiberFlags to keep consistency for devtools (#25832)

## Summary

We see recent bug reports like #25755 and #25769 for devtools. Whenever
a component uses hook `useEffect`, it triggers an error.
This was introduced in #25663 when we try to keep the `ReactFiberFlags`
numbers consistent with reconciler, in order to fix an issue with server
components.
However, the values of `ReactFiberFlags` in reconciler were actually
changed a while ago in
https://github.com/facebook/react/commit/b4204ede66284e7153ffb11fd434cd9b9a64a56f
We made this mistake because, although it's not mentioned in the
comment, `DidCapture` and `Hydrating` are actually used by DevTools

This caused
- the latest (not stable) react version is broken on devtools before
4.27.0 (but only in uncommon cases such server components)
- all earlier react versions are broken on latest devtools (4.27.0)

To keep most versions work, we need to revert the commit that changed
the `ReactFiberFlags` values

## How did you test this change?

1. add a `useEffect` in a component in the TodoList of the shell,
trigger the error in devtools
2. after change, the error is gone

DiffTrain build for `d69b2cf8208848b0f71b5214ddff55a1ff437cc8`
This commit is contained in:
mondaychen
2022-12-06 22:32:25 +00:00
parent a591e1c575
commit a9aa724b91
30 changed files with 1572 additions and 1516 deletions
+1 -1
View File
@@ -1 +1 @@
645ae2686b157c9f80193e1ada75b7e00ef49acf
d69b2cf8208848b0f71b5214ddff55a1ff437cc8
+1 -1
View File
@@ -1 +1 @@
645ae2686b157c9f80193e1ada75b7e00ef49acf
d69b2cf8208848b0f71b5214ddff55a1ff437cc8
+1 -1
View File
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-www-classic-645ae2686-20221206";
var ReactVersion = "18.3.0-www-classic-d69b2cf82-20221206";
// ATTENTION
// When adding new symbols to this file,
+1 -1
View File
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-www-modern-645ae2686-20221206";
var ReactVersion = "18.3.0-www-modern-d69b2cf82-20221206";
// ATTENTION
// When adding new symbols to this file,
+1 -1
View File
@@ -643,4 +643,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-645ae2686-20221206";
exports.version = "18.3.0-www-classic-d69b2cf82-20221206";
+1 -1
View File
@@ -635,4 +635,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-645ae2686-20221206";
exports.version = "18.3.0-www-modern-d69b2cf82-20221206";
@@ -654,7 +654,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-645ae2686-20221206";
exports.version = "18.3.0-www-classic-d69b2cf82-20221206";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -646,7 +646,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-645ae2686-20221206";
exports.version = "18.3.0-www-modern-d69b2cf82-20221206";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
+30 -24
View File
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = "18.3.0-www-classic-645ae2686-20221206";
var ReactVersion = "18.3.0-www-classic-d69b2cf82-20221206";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -517,41 +517,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -561,22 +567,22 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var DidPropagateContext =
/* */
131072;
262144;
var NeedsPropagation =
/* */
262144;
524288;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -584,23 +590,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
+30 -24
View File
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = "18.3.0-www-modern-645ae2686-20221206";
var ReactVersion = "18.3.0-www-modern-d69b2cf82-20221206";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -517,41 +517,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -561,22 +567,22 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var DidPropagateContext =
/* */
131072;
262144;
var NeedsPropagation =
/* */
262144;
524288;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -584,23 +590,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+30 -24
View File
@@ -478,41 +478,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -522,22 +528,22 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var DidPropagateContext =
/* */
131072;
262144;
var NeedsPropagation =
/* */
262144;
524288;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -545,23 +551,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
@@ -42513,7 +42519,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-645ae2686-20221206";
var ReactVersion = "18.3.0-www-classic-d69b2cf82-20221206";
function createPortal(
children,
+30 -24
View File
@@ -5205,41 +5205,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -5249,22 +5255,22 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var DidPropagateContext =
/* */
131072;
262144;
var NeedsPropagation =
/* */
262144;
524288;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -5272,23 +5278,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
@@ -42237,7 +42243,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-645ae2686-20221206";
var ReactVersion = "18.3.0-www-modern-d69b2cf82-20221206";
function createPortal(
children,
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -18,7 +18,7 @@ if (__DEV__) {
var React = require("react");
var ReactVersion = "18.3.0-www-classic-645ae2686-20221206";
var ReactVersion = "18.3.0-www-classic-d69b2cf82-20221206";
// This refers to a WWW module.
var warningWWW = require("warning");
@@ -18,7 +18,7 @@ if (__DEV__) {
var React = require("react");
var ReactVersion = "18.3.0-www-modern-645ae2686-20221206";
var ReactVersion = "18.3.0-www-modern-d69b2cf82-20221206";
// This refers to a WWW module.
var warningWWW = require("warning");
@@ -3620,4 +3620,4 @@ exports.renderToString = function(children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "18.3.0-www-classic-645ae2686-20221206";
exports.version = "18.3.0-www-classic-d69b2cf82-20221206";
@@ -3533,4 +3533,4 @@ exports.renderToString = function(children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "18.3.0-www-modern-645ae2686-20221206";
exports.version = "18.3.0-www-modern-d69b2cf82-20221206";
@@ -415,41 +415,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -459,16 +465,16 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -476,23 +482,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
@@ -38790,7 +38796,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-645ae2686-20221206";
var ReactVersion = "18.3.0-www-classic-d69b2cf82-20221206";
function createPortal(
children,
@@ -5122,41 +5122,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -5166,16 +5172,16 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -5183,23 +5189,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
@@ -38352,7 +38358,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-645ae2686-20221206";
var ReactVersion = "18.3.0-www-modern-d69b2cf82-20221206";
function createPortal(
children,
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -442,41 +442,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -486,16 +492,16 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -503,23 +509,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
@@ -23775,7 +23781,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-645ae2686-20221206";
var ReactVersion = "18.3.0-www-classic-d69b2cf82-20221206";
var didWarnAboutNestedUpdates;
@@ -442,41 +442,47 @@ var Placement =
2;
var DidCapture =
/* */
64;
128;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var Update =
/* */
4;
/* Skipped value: 0b000000000000000000000001000; */
var ChildDeletion =
/* */
8;
16;
var ContentReset =
/* */
16;
32;
var Callback =
/* */
32;
64;
/* Used by DidCapture: 0b000000000000000000010000000; */
var ForceClientRender =
/* */
128;
256;
var Ref =
/* */
256;
512;
var Snapshot =
/* */
512;
1024;
var Passive =
/* */
1024;
2048;
/* Used by Hydrating: 0b000000000000001000000000000; */
var Visibility =
/* */
4096;
8192;
var StoreConsistency =
/* */
8192;
16384;
var LifecycleEffectMask =
Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)
@@ -486,16 +492,16 @@ var HostEffectMask =
var Incomplete =
/* */
16384;
32768;
var ShouldCapture =
/* */
32768;
65536;
var ForceUpdateForLegacySuspense =
/* */
65536;
131072;
var Forked =
/* */
524288; // Static tags describe aspects of a fiber that are not specific to a render,
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
@@ -503,23 +509,23 @@ var Forked =
var RefStatic =
/* */
1048576;
2097152;
var LayoutStatic =
/* */
2097152;
4194304;
var PassiveStatic =
/* */
4194304; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
8388608; // Flag used to identify newly inserted fibers. It isn't reset after commit unlike `Placement`.
var PlacementDEV =
/* */
8388608;
16777216;
var MountLayoutDev =
/* */
16777216;
33554432;
var MountPassiveDev =
/* */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
67108864; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.
var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
@@ -23775,7 +23781,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-645ae2686-20221206";
var ReactVersion = "18.3.0-www-modern-d69b2cf82-20221206";
var didWarnAboutNestedUpdates;
@@ -153,7 +153,7 @@ var Placement =
2;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
function getNearestMountedFiber(fiber) {
@@ -153,7 +153,7 @@ var Placement =
2;
var Hydrating =
/* */
2048; // You can change the rest (and add more).
4096; // You can change the rest (and add more).
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
function getNearestMountedFiber(fiber) {