devrnt / react-use-intercom

☎️ React Intercom integration without the hassle, powered by hooks.
https://devrnt.github.io/react-use-intercom/#/useIntercom
MIT License
337 stars 43 forks source link

Lost style from material UI #514

Closed taiducnguyen closed 5 months ago

taiducnguyen commented 2 years ago

Hi,

I'm using nextjsand trying to integrate with intercom then I found the issue: When opening the chat box and then clicking on the close button, the material UI style is lost image And I also see another error when I go to the other navigation page: image

image

Do you guys have any idea about this issue ?

ferpintado commented 2 years ago

Same problem here https://streamable.com/we89py. Although it happens only on mobile.

I am using the hook in a next.js app

devrnt commented 2 years ago

Hi, thanks for creating this issue.

Can you provide a reproduction?

ferpintado commented 2 years ago

Hi, thanks for creating this issue.

Can you provide a reproduction?

...
...
const { show, update } = useIntercom();
...
...
<Button
  endIcon={<HelpOutline />}
  variant="text"
  onClick={show}
>
  Ayuda
</Button>

dependencies:

"@emotion/react": "^11.7.1", "@emotion/server": "^11.4.0", "@emotion/styled": "^11.6.0", "@mui/material": "^5.3.1", "next": "12.1.0", "react": "17.0.2",

1.- Open your app in mobile size window 2.- Click on the button

Intercom would open fine

3.-Close intercom 4.- Navigate to another route

App styling is broken

devrnt commented 2 years ago

Could you provide a codesandbox/stackblitz link with a small reproduction?

devrnt commented 2 years ago

Feel free to re-open

rspauwen commented 2 years ago

Hi, I'm having the same issue with next.js and only on mobile. Can someone re-open this issue please?

rspauwen commented 1 year ago

Feel free to re-open

I'd like to re-open it, but don't know how...

WolfH commented 1 year ago

Hi @devrnt, we're not able to manually reopen this ticket ourselves. Could you reopen it?

devrnt commented 1 year ago

Re-opened!

clayton-knapp commented 1 year ago

Hi thanks for reopening this ticket. We are also experiencing this problem at reclaim.ai

devrnt commented 1 year ago

Please provide a minimal reproduction

devrnt commented 5 months ago

Closing this again since no reproduction is provided