Home/Community/Live chat
Live chat✓ Solved

Widget not loading on a React SPA

312 views · 2 replies
AN
May 16, 2026 · 1:24 PM
Snippet pasted in public/index.html. Widget shows up on the first page load but disappears on client-side navigation. Anyone fixed this?
MP
Mara PatelCustomer Engineer
May 16, 1:48 PM
✓ Accepted
Single-page apps need the widget to listen for route changes. Two options: (1) Call window.MessageCom.refresh() after each navigation in your router. (2) Use the Next.js or React-Router-aware install at /developers/tutorials/install-live-chat-on-react. Either fixes it.
AN
May 16, 2:08 PM
Option 2 worked first time. Thanks.
Want to reply or start your own thread?
Free to join. We seed every new account with a 14-day Business trial.
Join the community

More in Live chat