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

Directline webchat not working in React Strict Mode #5127

Open
SyedFayaz opened this issue Apr 9, 2024 · 1 comment
Open

Directline webchat not working in React Strict Mode #5127

SyedFayaz opened this issue Apr 9, 2024 · 1 comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete.

Comments

@SyedFayaz
Copy link

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

NPM

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest), Browser: Firefox (latest)

Which area does this issue affect?

Others or unrelated

What is the public URL for the website?

No response

Please describe the bug

Minimizable web chat example from samples is not working in React Strict Mode.
conversations API is getting cancelled

React Version: 18.2.0
NodeJS: 18.19.1

Do you see any errors in console log?

No response

How to reproduce the issue?

  1. Navigate to samples of webchat from this repo
  2. Go to minimizable-webchat sample
  3. Add React Strict Mode
  4. Install the node modules and start the application
  5. You will see conversations API getting cancelled.

What do you expect?

Bot should start and conversations API should succeed.

NOTE: Bot works if React Strict Mode is removed.

What actually happened?

Bot shows "connecting..." and not starting. (Attached screenshot for the same)

Do you have any screenshots or recordings to repro the issue?

320514840-b686f10f-a35b-461b-8928-d73a141c7363

Adaptive Card JSON

No response

Additional context

No response

@SyedFayaz SyedFayaz added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete. labels Apr 9, 2024
@benferns
Copy link

benferns commented May 7, 2024

I've also encountered this with a brand new project using react 18.2.66 as per the README, using bot framework 4.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete.
Projects
None yet
Development

No branches or pull requests

2 participants