diff --git a/packages/react-reconciler/src/ReactFiber.new.js b/packages/react-reconciler/src/ReactFiber.new.js index e81801ad5c8f3..e047e3b1a827e 100644 --- a/packages/react-reconciler/src/ReactFiber.new.js +++ b/packages/react-reconciler/src/ReactFiber.new.js @@ -736,7 +736,11 @@ export function createFiberFromLegacyHidden( fiber.lanes = lanes; // Adding a stateNode for legacy hidden because it's currently using // the offscreen implementation, which depends on a state node - fiber.stateNode = {}; + fiber.stateNode = { + isHidden: false, + pendingMarkers: null, + transitions: null, + }; return fiber; } diff --git a/packages/react-reconciler/src/ReactFiber.old.js b/packages/react-reconciler/src/ReactFiber.old.js index 75fcba88bbd15..d4e4354222d55 100644 --- a/packages/react-reconciler/src/ReactFiber.old.js +++ b/packages/react-reconciler/src/ReactFiber.old.js @@ -736,7 +736,11 @@ export function createFiberFromLegacyHidden( fiber.lanes = lanes; // Adding a stateNode for legacy hidden because it's currently using // the offscreen implementation, which depends on a state node - fiber.stateNode = {}; + fiber.stateNode = { + isHidden: false, + pendingMarkers: null, + transitions: null, + }; return fiber; }