summaryrefslogtreecommitdiffstats
path: root/webapp/components/time_since.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/time_since.jsx')
-rw-r--r--webapp/components/time_since.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/time_since.jsx b/webapp/components/time_since.jsx
index 02b0174ae..9f7a93ceb 100644
--- a/webapp/components/time_since.jsx
+++ b/webapp/components/time_since.jsx
@@ -9,8 +9,14 @@ import {FormattedRelative, FormattedDate} from 'react-intl';
import {Tooltip, OverlayTrigger} from 'react-bootstrap';
import React from 'react';
+import PureRenderMixin from 'react-addons-pure-render-mixin';
export default class TimeSince extends React.Component {
+ constructor(props) {
+ super(props);
+
+ this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
+ }
componentDidMount() {
this.intervalId = setInterval(() => {
this.forceUpdate();