dillon1000/react

Commit

Don't use owner to determine statefulness

This reverts an early commit that made it so that elements from two
different owner in the same slot wouldn't share state.

That behavior was helpful, and we did hit a case which was solved by this.
However, this pattern is extremely uncommon. I've yet to even find the
original case, let alone any existing cases in our codebase.

Therefore, we're dropping this to simplify elements and enable new
optimizations.
Browse files
Changed paths3 files
First-parent comparison
M src/core/__tests__/ReactCompositeComponent-test.js ModifiedM src/core/__tests__/ReactMultiChild-test.js ModifiedM src/core/shouldUpdateReactComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…