Skip to content

Commit

Permalink
Remove special case for OffscreenComponent in StrictMode
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-SC committed Sep 7, 2022
1 parent a9dc73c commit 94da1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberWorkLoop.new.js
Original file line number Diff line number Diff line change
Expand Up @@ -3184,7 +3184,7 @@ function doubleInvokeEffectsInDEV(
) {
const isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE;
const isInStrictMode = parentIsInStrictMode || isStrictModeFiber;
if (fiber.flags & PlacementDEV || fiber.tag === OffscreenComponent) {
if (fiber.flags & PlacementDEV) {
setCurrentDebugFiberInDEV(fiber);
if (isInStrictMode) {
disappearLayoutEffects(fiber);
Expand Down

0 comments on commit 94da1f6

Please sign in to comment.