Fix stupid date logic
This commit is contained in:
parent
d15c787469
commit
96cf74af80
|
@ -3,11 +3,11 @@ import formatDate from '../date';
|
||||||
|
|
||||||
export default class DateDisplay extends Component {
|
export default class DateDisplay extends Component {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
setInterval(() => this.forceUpdate(), this.interval);
|
this._interval = setInterval(() => this.forceUpdate(), this.interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
clearInterval(this.interval);
|
clearInterval(this._interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user