Unable to reload Freshchat script on ReactJS

I am having using Freshchat with React.

We have three different ‘topics’ for the chat, which are : Login, Logged, and Checkout. These redirect the user to different teams. However, once one of the scripts is appended to the document and loaded, its loaded. Due to the SPA nature of React, once the page is loaded, internal navigation using routes will not trigger a reload of the page. Thus, even if I do change the tags in the script, it will not reflect any changes as the page has not reloaded.

Has anyone faced this problem? Any tips?