diff --git a/src/renderers/dom/fiber/ReactDOMFiberComponent.js b/src/renderers/dom/fiber/ReactDOMFiberComponent.js index fdf3f519a00bd..fd10cf0e99995 100644 --- a/src/renderers/dom/fiber/ReactDOMFiberComponent.js +++ b/src/renderers/dom/fiber/ReactDOMFiberComponent.js @@ -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(