Skip to content

Commit 1acb029

Browse files
committed
Add firstEffect, et al fields to new fork
We need to bisect the changes to the recent commit phase refactor. To do this, we'll need to add back the effect list temporarily. This only adds them to the Fiber type so that the memory is the same as the old fork.
1 parent 665f764 commit 1acb029

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.eslintrc.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,7 @@ module.exports = {
116116
'react-internal/no-cross-fork-types': [
117117
ERROR,
118118
{
119-
old: [
120-
'firstEffect',
121-
'nextEffect',
122-
// Disabled because it's also used by the Hook type.
123-
// 'lastEffect',
124-
],
119+
old: [],
125120
new: [],
126121
},
127122
],
@@ -190,7 +185,7 @@ module.exports = {
190185
{
191186
files: [
192187
'packages/react-native-renderer/**/*.js',
193-
'packages/react-transport-native-relay/**/*.js'
188+
'packages/react-transport-native-relay/**/*.js',
194189
],
195190
globals: {
196191
nativeFabricUIManager: true,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ function FiberNode(
141141

142142
// Effects
143143
this.flags = NoFlags;
144+
this.nextEffect = null;
145+
146+
this.firstEffect = null;
147+
this.lastEffect = null;
144148
this.subtreeFlags = NoFlags;
145149
this.deletions = null;
146150

0 commit comments

Comments
 (0)