Closed JoaquinDelPrado closed 5 years ago
Hey @JoaquinDelPrado , Did you find a solution to this?
something like that, this was my solution:
successCallback = () => {
this.closeSuccess = cogoToast.success('Success!', {
onClick: hide => {
this.props.history.push('/cederDocumentos');
hide();
},
hideAfter: 0,
position: 'top-right',
heading: '¡Exito!',
bar: { size: '30px' }
});
};
so in another function (componentDidUnmount to me)
componentWillUnmount() {
this.closeSuccess();
};
How can i close all open modals using a function?