Remove componentDidMount function with reload.

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 <koddsson@gmail.com>
This commit is contained in:
Kristján Oddsson
2015-04-01 21:05:42 +00:00
parent 0f697914b1
commit d92a102a83

View File

@@ -37,9 +37,6 @@ var ContainerHomePreview = React.createClass({
});
}
},
componentDidUpdate: function () {
this.reload();
},
componentWillUnmount: function() {
clearInterval(this.timer);
},