componentDidUpdate(prevProps, prevState) { ReactTooltip.rebuild(); this.fetchReportIfNecessary(prevProps); this.fetchCombatantsIfNecessary(prevProps, prevState); this.fetchEventsAndParseIfNecessary(prevProps, prevState); }
$(this.refs.app).on('mouseenter', ':not([data-added])[data-tip]', (e) => { $(e.target).attr('data-added', true); this.setState({ tooltipPosition: $(e.target).data('tip-position') || 'top' }); ReactTooltip.rebuild(); });
this.setState(function(currState){ if (!currState.open && currState.closing){ return { 'closing' : false }; } else if (currState.open){ ReactTooltip.rebuild(); } return null; });
componentDidUpdate(prevProps, prevState){ if (this.state.open || prevState.open !== this.state.open){ ReactTooltip.rebuild(); } if (prevProps.isFullscreen !== this.props.isFullscreen && typeof this.props.parentForceUpdate === 'function'){ setTimeout(this.props.parentForceUpdate, 100); } }
componentDidMount() { ReactTooltip.rebuild(); this.scribe = new Scribe(this.refs.editor); this.configureScribe(); this.scribe.on('content-changed', this.onContentChange); this.refs.editor.innerHTML = this.props.value; }
componentDidUpdate(pastProps, pastState){ if (pastState.results !== this.state.results){ ReactTooltip.rebuild(); } if (pastProps.columnDefinitions.length !== this.props.columnDefinitions.length/* || this.props.results !== pastProps.results*/){ // We have a list of widths in state; if new col is added, these are no longer aligned, so we reset. // We may optioanlly (currently disabled) also do this if _original_ results have changed as extra glitter to decrease some widths re: col values. // (if done when state.results have changed, it would occur way too many times to be performant (state.results changes as-you-scroll)) this.resetWidths(); } else if (pastProps.windowWidth !== this.props.windowWidth){ this.setState(this.getTableDims()); } }
componentDidMount(){ ReactTooltip.rebuild(); }
componentDidUpdate () { ReactTooltip.rebuild() }
componentDidMount(){ if (typeof this.props.mounted !== 'boolean') this.setState({ 'mounted' : true }); ReactTooltip.rebuild(); }
componentDidUpdate: function() { ReactTooltip.rebuild(); },
setTimeout(function(){ ReactTooltip.rebuild(); }, 10);
setTimeout(() => { ReactTooltip.rebuild() }, 2000)