You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In componentDidMount(), you insert the Zendesk script which also defines window.zE.
In componentWillUnmount(), you don't remove the previously inserted Zendesk script and you also delete window.zE. Every time the component remounts, it inserts an additional Zendesk script and the old scripts still persist on the page.
In our experience, window.zE also does not work correctly after a remount.
The solution for us was to simply remove componentWillUnmount. We don't see a reason why we should delete window.zE manually whenever the Zendesk component unmounts. We can simply keep using same window.zE throughout the whole session.
The text was updated successfully, but these errors were encountered:
In componentDidMount(), you insert the Zendesk script which also defines window.zE.
In componentWillUnmount(), you don't remove the previously inserted Zendesk script and you also
delete window.zE
. Every time the component remounts, it inserts an additional Zendesk script and the old scripts still persist on the page.In our experience, window.zE also does not work correctly after a remount.
The solution for us was to simply remove componentWillUnmount. We don't see a reason why we should delete window.zE manually whenever the Zendesk component unmounts. We can simply keep using same window.zE throughout the whole session.
The text was updated successfully, but these errors were encountered: