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
{{ message }}
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
LiveChatApi will be rendered only on certain routes like "contact us". So it is typical for it to mount/unmount multiple times per session. In order to obtain a ref to LC_API on subsequent mounts, I had to look to the window object.
I propose that react-livechat should handle this and invoke onChatLoaded on mount if chat is already loaded.
The text was updated successfully, but these errors were encountered:
Here's my use case:
LiveChatApi
will be rendered only on certain routes like "contact us". So it is typical for it to mount/unmount multiple times per session. In order to obtain a ref toLC_API
on subsequent mounts, I had to look to the window object.I propose that react-livechat should handle this and invoke onChatLoaded on mount if chat is already loaded.
The text was updated successfully, but these errors were encountered: