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

Sample 12 prevent reconnection and move to functional component #2758

Merged
merged 4 commits into from
Dec 27, 2019

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Dec 18, 2019

Fixes #2609.

Changelog Entry

Fixed

  • Fixes #2609. Fix sample 12: minimizable button is causing another reconnect on restore, by @compulim in PR #2758

Description

In sample 12 "minimizable Web Chat", when Web Chat is minimized, it disconnect Direct Line. When Web Chat is restored, it reconnect.

Temporarily, we hide Web Chat by setting display: none. This is not an ideal fix.

We need #2750 to be resolved before we could implement an ideal fix.

Specific Changes

  • Modify sample 12 to use functional components
  • When minimized/restored, we will set display: none instead of unmounting Web Chat from DOM tree

  • Testing Added
    • No tests for samples currently

@compulim compulim changed the title Move to functional components Sample 12 prevent reconnection and move to functional component Dec 18, 2019
@coveralls
Copy link

coveralls commented Dec 18, 2019

Coverage Status

Coverage remained the same at 61.16% when pulling 10bab2a on compulim:fix-2609 into 6c664a9 on microsoft:master.

@corinagum
Copy link
Contributor

We need to resolve #2750 before we could implement an ideal fix.

This text in your PR description will close issue 2750, so you should remove the resolve in front of it.

Copy link
Contributor

@tdurnford tdurnford left a comment

Choose a reason for hiding this comment

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

LGTM

@corinagum
Copy link
Contributor

Is there a reason this hasn't been merged in? We have a ton of potentially stale PRs.

@compulim compulim merged commit 84c25f2 into microsoft:master Dec 27, 2019
@compulim compulim deleted the fix-2609 branch December 27, 2019 19:55
@compulim compulim mentioned this pull request Mar 5, 2020
40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimizable sample should not reconnect
4 participants