dillon1000/react

Commit

Throw when calling transferPropsTo() on a component you don't own

This is dangerous because it means that data is flowing into the component from two components, only one of which is the actual "owner". While we may be able to figure out how to
support this someday, let's be strict and prevent it for now.
Browse files
Changed paths2 files
First-parent comparison
M src/core/ReactPropTransferer.js ModifiedR src/core/__tests__/ReactCompositeComponentTransferProps-test.js →src/core/__tests__/ReactPropTransferer-test.js Renamed
Patch

Files changed

Rendering syntax-highlighted changes…