Skip to content

Commit 94da1f6

Browse files
committed
Remove special case for OffscreenComponent in StrictMode
1 parent a9dc73c commit 94da1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3184,7 +3184,7 @@ function doubleInvokeEffectsInDEV(
31843184
) {
31853185
const isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE;
31863186
const isInStrictMode = parentIsInStrictMode || isStrictModeFiber;
3187-
if (fiber.flags & PlacementDEV || fiber.tag === OffscreenComponent) {
3187+
if (fiber.flags & PlacementDEV) {
31883188
setCurrentDebugFiberInDEV(fiber);
31893189
if (isInStrictMode) {
31903190
disappearLayoutEffects(fiber);

0 commit comments

Comments
 (0)