Answered

react-use-intercom useIntercom() onHide() not working?

  • 16 November 2023
  • 1 reply
  • 146 views

  const onHide = () => console.log("Intercom did hide the Messenger");
return (
<IntercomProvider
appId={process.env.REACT_APP_INTERCOM_APP_ID || ""}
initializeDelay={1000}
onHide={onHide}
>
{children}
</IntercomProvider>
);


I have this line of code, when i press the X button on my intercom widget to close it, i do not get the onHide console.log. Anyone knows how to fix this?

icon

Best answer by Jacob Cox 20 November 2023, 00:16

View original

1 reply

Userlevel 4
Badge +5

Hi @Timothy Ongย !

If you canโ€™t find help with the Community members here, you might want to reach out to the developer of that react-use-intercom NPM package, here.ย 

Reply