From 0650768788e1a2aff18ce48b22ca5e4fa5f39aa0 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 9 Nov 2015 21:44:33 -0800 Subject: [PATCH] fix(prefs): ReactRemote should call componentWillUnmount --- src/react-remote/react-remote-parent.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/react-remote/react-remote-parent.js b/src/react-remote/react-remote-parent.js index e5a934f04..26330b970 100644 --- a/src/react-remote/react-remote-parent.js +++ b/src/react-remote/react-remote-parent.js @@ -280,8 +280,10 @@ var openWindowForComponent = function(Component, options) { break; } } - reactRemoteContainer.removeChild(container); - console.log("Cleaned up react remote window"); + + React.render(React.createElement('div'), container, function() { + reactRemoteContainer.removeChild(container); + }); container = null; thinWindow = null; };