Skip to main content
Answered

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

  • November 16, 2023
  • 1 reply
  • 315 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?

Best answer by Jacob Cox

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

View original
Did this topic help you find an answer to your question?

1 reply

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • Answer
  • November 19, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings