From d92a102a8388ca7e6ff8911290cbc59ef7efc297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Wed, 1 Apr 2015 21:05:42 +0000 Subject: [PATCH] Remove `componentDidMount` function with reload. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removing the reload (and the whole `componentDidMount` function since the reload was the only thing in there) makes sure that the container view isn't reloaded when the DOM changes and so does not make a request to the container. Because of this change kitematic will not make a request to the container when hovering over the preference button. (I wasn't sure if this was used somewhere for real. If it is, I couldn't find it). Fixes #333. Signed-off-by: Kristján Oddsson --- src/ContainerHomePreview.react.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ContainerHomePreview.react.js b/src/ContainerHomePreview.react.js index 9e0d21a108..e03c448411 100644 --- a/src/ContainerHomePreview.react.js +++ b/src/ContainerHomePreview.react.js @@ -37,9 +37,6 @@ var ContainerHomePreview = React.createClass({ }); } }, - componentDidUpdate: function () { - this.reload(); - }, componentWillUnmount: function() { clearInterval(this.timer); },