Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidUpdate({ location: previousLocation }, { namespaceOption: previousNamespace }) {
const { location } = this.props
const { namespaceOption } = this.state
const namespace = namespaceOption.value
const prevNamespace = previousNamespace.value
if (location.pathname !== previousLocation.pathname || namespace !== prevNamespace) {
this.setEventSourceStream(location.pathname, namespace)
}
// this is required to make tool tips show.
ReactTooltip.rebuild()
}
onAfterOpen={() => ReactTooltip.rebuild()}
{...props}
middleware.push(store => next => action => {
const prevState = store.getState()
const result = next(action)
if (prevState !== store.getState()) ReactTooltip.rebuild()
return result
})
componentDidUpdate () {
ReactTooltip.rebuild()
}
componentDidUpdate(prevProps, prevState) {
let {form} = this.state
let annual_key_change = form.annual_viewer_key != prevState.form.annual_viewer_key
if (annual_key_change) ReactTooltip.rebuild()
}
componentDidUpdate() {
ReactTooltip.rebuild();
}
componentDidMount() {
if (this.props.tooltip) ReactTooltip.rebuild();
}
componentDidUpdate() {
ReactTooltip.rebuild();
}
componentDidMount() {
ReactTooltip.rebuild();
}