diff --git a/src/renderers/dom/fiber/ReactDOMFiberComponent.js b/src/renderers/dom/fiber/ReactDOMFiberComponent.js index c78e180e75..9759562989 100644 --- a/src/renderers/dom/fiber/ReactDOMFiberComponent.js +++ b/src/renderers/dom/fiber/ReactDOMFiberComponent.js @@ -515,6 +515,8 @@ var ReactDOMFiberComponent = { case 'input': ReactDOMFiberInput.mountWrapper(workInProgress, props, hostParent); props = ReactDOMFiberInput.getHostProps(workInProgress, props); + // TODO: Make sure we check if this is still unmounted or do any clean + // up necessary since we never stop tracking anymore. inputValueTracking.track(workInProgress); trapBubbledEventsLocal(workInProgress); // For controlled components we always need to ensure we're listening @@ -711,43 +713,6 @@ var ReactDOMFiberComponent = { } }, - /** - * Destroys all event registrations for workInProgress instance. Does not remove from - * the DOM. That must be done by the parent. - * - * @internal - */ - unmountComponent: function(safely, skipLifecycle) { - switch (workInProgress._tag) { - case 'input': - case 'textarea': - inputValueTracking.stopTracking(workInProgress); - break; - case 'html': - case 'head': - case 'body': - /** - * Components like
and can't be removed or added - * easily in a cross-browser way, however it's valuable to be able to - * take advantage of React's reconciliation for styling and