Skip to content
Discussion options

You must be logged in to vote

Hey @StanBorovko, adding a key prop to ChatBot should solve your issue e.g. key={isDesktop ? "desktop" : "mobile"}. Internally, the chatbot does not re-render on changes to settings and styles (even if you manage it externally as a state). The chatbot only responds to settings and styles changes done via updateSettings and updateStyles exposed through hooks. That said, I recognize that this is not very ideal behavior - developers would expect settings and styles to reflect changes without additional work.

I'll see if I can spend some time refining this - it's something I've wanted to work on but kept low priority.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by StanBorovko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants