File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -736,7 +736,12 @@ export function createFiberFromLegacyHidden(
736736 fiber . lanes = lanes ;
737737 // Adding a stateNode for legacy hidden because it's currently using
738738 // the offscreen implementation, which depends on a state node
739- fiber . stateNode = { } ;
739+ const instance : OffscreenInstance = {
740+ isHidden : false ,
741+ pendingMarkers : null ,
742+ transitions : null ,
743+ } ;
744+ fiber . stateNode = instance ;
740745 return fiber ;
741746}
742747
Original file line number Diff line number Diff line change @@ -736,7 +736,12 @@ export function createFiberFromLegacyHidden(
736736 fiber . lanes = lanes ;
737737 // Adding a stateNode for legacy hidden because it's currently using
738738 // the offscreen implementation, which depends on a state node
739- fiber . stateNode = { } ;
739+ const instance : OffscreenInstance = {
740+ isHidden : false ,
741+ pendingMarkers : null ,
742+ transitions : null ,
743+ } ;
744+ fiber . stateNode = instance ;
740745 return fiber ;
741746}
742747
You can’t perform that action at this time.
0 commit comments