Summary:
I'm getting this warning from react in the console:
Warning: bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See Modal
Here is the call where's it happening (look for the arrow in comments on right side)
componentWillUnmount: function() {
if (this.props.ariaHideApp) {
ariaAppHider.show(this.props.appElement);
}
var state = this.portal.state;
var now = Date.now();
var closesAt = state.isOpen && this.props.closeTimeoutMS
&& (state.closesAt
|| now + this.props.closeTimeoutMS);
if (closesAt) {
if (!state.beforeClose) {
this.portal.closeWithTimeout();
}
setTimeout(this.removePortal.bind(this), closesAt - now); /// <-- This line
} else {
this.removePortal();
}
},
Steps to reproduce:
I think it happens when I unmount a modal when it's still disappearing.
Summary:
I'm getting this warning from react in the console:
Warning: bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See ModalHere is the call where's it happening (look for the arrow in comments on right side)
Steps to reproduce:
I think it happens when I unmount a modal when it's still disappearing.