Skip to content

Commit 47e18c3

Browse files
committed
Merge pull request #2593 from sebmarkbage/mountImage
Add additional field for ART reconciler
2 parents e7f4bad + 61349eb commit 47e18c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/ReactComponent.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ var ReactComponent = {
8989
// We keep the old element and a reference to the pending element
9090
// to track updates.
9191
this._currentElement = element;
92+
// These two fields are used by the DOM and ART diffing algorithms
93+
// respectively. Instead of using expandos on components, we should be
94+
// storing the state needed by the diffing algorithms elsewhere.
9295
this._mountIndex = 0;
96+
this._mountImage = null;
9397
},
9498

9599
/**

0 commit comments

Comments
 (0)