We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0505dc6 commit f2a7131Copy full SHA for f2a7131
src/sentry/static/sentry/app/components/timeSince.jsx
@@ -1,7 +1,12 @@
1
import React from "react";
2
import moment from "moment";
3
+import PureRenderMixin from 'react-addons-pure-render-mixin';
4
5
var TimeSince = React.createClass({
6
+ mixins: [
7
+ PureRenderMixin
8
+ ],
9
+
10
propTypes: {
11
date: React.PropTypes.any.isRequired,
12
suffix: React.PropTypes.string
@@ -31,10 +36,6 @@ var TimeSince = React.createClass({
31
36
this.forceUpdate();
32
37
},
33
38
34
- shouldComponentUpdate(nextProps, nextState) {
35
- return this.props.date !== nextProps.date;
- },
-
39
render() {
40
var date = this.props.date;
41
0 commit comments