Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react): refactor to allow hostId to be changed at runtime #1976

Merged
merged 3 commits into from Oct 26, 2021

Conversation

asastre
Copy link
Contributor

@asastre asastre commented Oct 22, 2021

Description

Refactor to allow the hostId to be specified at runtime within the integration code of the webchat (as an attribute of the webchat configuration) to get rid of a warning in the browser's console.

Context

If the id of the HTML Element where the webchat is rendered was different than root, this warning was showing up:

[botonic] Host ID "other-name" don't match 'hostId' option: root. Using value: other-name.

And setting the hostId attribute at runtime as a webchat configuration when initializing the webchat wasn't working.

Approach taken / Explain the design

To document / Usage example

Testing

The pull request has unit tests.

Copy link
Contributor

@Khaeshah Khaeshah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, check other comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants