Skip to content

Commit

Permalink
Don't read property twice
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Aug 29, 2017
1 parent b93e093 commit fbcced1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/renderers/dom/fiber/ReactDOMFiberComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,15 +746,16 @@ var ReactDOMFiberComponent = {
lastRawProps: Object,
nextRawProps: Object,
): void {
var namespaceURI = domElement.namespaceURI;
var wasCustomComponentTag = isCustomComponent(
tag,
lastRawProps,
domElement.namespaceURI,
namespaceURI,
);
var isCustomComponentTag = isCustomComponent(
tag,
nextRawProps,
domElement.namespaceURI,
namespaceURI,
);
// Apply the diff.
updateDOMProperties(
Expand Down

0 comments on commit fbcced1

Please sign in to comment.