dillon1000/react

Commit

Short-circuit `updatePropertyByID`

When `ReactNativeComponent` updates, it calls `updatePropertyByID` in `ReactDOMIDOperations` which calls `DOMPropertyOperations`. However, in `ReactDOMIDOperations`, we will lookup the node for an ID using `ReactID.getNode`. This wastes time looking for nodes when we may not need to ever update it (e.g. `children`).

This changes `ReactNativeComponent` to bail out sooner.
Browse files
Changed paths1 file
First-parent comparison
M src/core/ReactNativeComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…