Convert stateful PureComponents to Component
Removing errors caused by shouldComponentUpdate being calledpull/10616/head
parent
24b3956aa5
commit
90b0b2deb8
|
@ -1,4 +1,4 @@
|
|||
import React, {PureComponent} from 'react'
|
||||
import React, {Component} from 'react'
|
||||
import {connect} from 'react-redux'
|
||||
import {bindActionCreators} from 'redux'
|
||||
import {withRouter, InjectedRouter} from 'react-router'
|
||||
|
@ -45,7 +45,7 @@ interface Props {
|
|||
}
|
||||
|
||||
@ErrorHandling
|
||||
class OrganizationsTableRow extends PureComponent<Props, {}> {
|
||||
class OrganizationsTableRow extends Component<Props, {}> {
|
||||
public shouldComponentUpdate(nextProps) {
|
||||
return !_.isEqual(this.props, nextProps)
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, {PureComponent} from 'react'
|
||||
import React, {Component} from 'react'
|
||||
import {connect} from 'react-redux'
|
||||
import {bindActionCreators} from 'redux'
|
||||
|
||||
|
@ -46,7 +46,7 @@ interface Props {
|
|||
}
|
||||
|
||||
@ErrorHandling
|
||||
export class TableOptions extends PureComponent<Props, {}> {
|
||||
export class TableOptions extends Component<Props, {}> {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
this.moveField = this.moveField.bind(this)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, {PureComponent} from 'react'
|
||||
import React, {Component} from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import classnames from 'classnames'
|
||||
|
||||
|
@ -7,7 +7,7 @@ import {NULL_HOVER_TIME} from 'shared/constants/tableGraph'
|
|||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||
|
||||
@ErrorHandling
|
||||
class Crosshair extends PureComponent {
|
||||
class Crosshair extends Component {
|
||||
shouldComponentUpdate(nextProps) {
|
||||
return this.props.hoverTime !== nextProps.hoverTime
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue