Integration of FreshChat with React Web

Hi all,

I am trying to integrate the FC widget into a React web application. Does anyone have experience doing this and can point me towards some good resources.

I have it almost working, but I am having problem clearing a user on logout, then setting a different user on login, without closing the browser window first.

It appears that the widget does not like being initiated with one user and their restoreId then switching to a different user. Any advice on dealing with this scenario?

Many thanks in anticipation

Facing the same issue