We have a react app and have made a custom button for launching Intercom.
The button have
onShow listeners (
window.Intercom('onHide', setIsOpen))) to show a close icon on the button when Intercom is showing.
When the user hides the menu, with the button, we would like to unsubscribe to the
onShow events. How can we do that?
TLDR: How to unsubscribe form