Closed luc-tuyishime closed 3 years ago
Setting the params
params={{
storage: "session",
}}
will delete your storage after closing your app or Tab (not on refresh). 😄
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
You can also manually clear the local storage on mount and on unmount to make sure that the state is always pristine. localStorage.chat_session = null
i have faced same issue but i have fix this using this command localStorage.clear(); check full integration here: https://youtu.be/N_A7e16L6oc
function CustomWidget = () => { return ( <Widget initPayload={"/get_started"} socketUrl={"http://localhost:5500"} socketPath={"/socket.io/"} customData={{"language": "en"}} title={"Title"} /> ) }